When I've needed to do this, I've encoded both values in the VALUE
attribute, e.g.

<select name="modelname">
<option value="Pl23_23">P123</option>
</select>

then use
<CFSET theValue = ListGetAt(Form.modelname,1,"_")>
<CFSET theID = ListGetAt(Form.modelname,2,"_")>

On your processing page.

But there might be a better way to do it...

bye!

Tuesday, February 10, 2004, 10:07:26 AM, you wrote:

kwn> Can anyone tell me how to get the value of an option id?

kwn> Example:
kwn> <select name="modelname">
kwn> <option id="23" value="Pl23">P123</option>
kwn> </select>

kwn> Of course, when I output modelname on the next page I get the value, put I
kwn> also need to get the id. Is this possible?

kwn> Thanks!
kwn>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to