Instead of making the value equal to the ID from the db, you could
include  both the ID and the text value in the value separated by a
character:

eg 1~Car 2~Boat...

That way you can parse the value, separating on the ~, and get both the
ID and text value from the one select box.  The only thing to check for
would be spaces or special characters in the text value that might stuff
it up.

>>> [EMAIL PROTECTED] 6/07/2003 3:45:50 am >>>

Hey hey

Can anyone suggest a nice way to be able to access both the value of a
select box option and the text of a select box option from a form
submission?

Am doing some client side manipulation of select boxes and am changing
the
value of the options on the fly.  Each option has a value, being the ID
from
the database and the text being the text value.

I want to be able to update the value depending on its ID in the
option
value.

Cant think of anything off the top of my head apart from writing more
dam
javascript (which I have been doing for the last 24 hours [dam
debuging])


Regards
Steve


---
You are currently subscribed to cfaussie as:
[EMAIL PROTECTED] 
To unsubscribe send a blank email to
[EMAIL PROTECTED] 

MX Downunder AsiaPac DevCon - http://mxdu.com/
-------------------------------------------------------
Maddocks

Tel: (03) 92880555   International: +61 3 92880555
Fax: (03) 92880666   International: +61 3 92880666

Web: http://www.maddocks.com.au

-------------------------------------------------------
The information in this electronic mail is privileged
and confidential, intended only for use of the individual
or entity named.  If you are not the intended recipient,
any dissemination, copying or use of the information is 
strictly prohibited.  If you have received this transmission
in error please delete it immediately from your system 
and inform us by email on [EMAIL PROTECTED]
-------------------------------------------------------


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to