468,505 Members | 1,937 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,505 developers. It's quick & easy.

Post a seperate value in a dropdown list

Hi.

Is it possible to post a dropdown value with the descriptor that follows:

Example:
<FORM name="State" action="state.asp" method="POST">
<select name="State_Prov" size="1">
<option value="1.05">Texas</option>
<option value="1.06">Florida</option>
</select>
</Form>

----
strHTML = strHTML & "State: " & Request.Form("State_Prov") & "<br>"
----
The value of State_Prov will be 1.05 if I selected Texas which is what I want for a javascript function that totals the state tax.

But what I also require to see is the strHTML to return the actual state: Texas. I tried a couple of things, but to no avail.

Steph
Aug 9 '10 #1
3 1356
jhardman
3,405 Expert 2GB
Can you say value="1.05 Texas" and then split out the value programatically?

Jared
Aug 10 '10 #2
Hi Jared.

Thanks for the reply.
Well, that will work but I don't know how to do so.
I thought of trying the split() function in Javascript but was unable to figure it out.

What would you suggest I try?
Steph
Aug 10 '10 #3
jhardman
3,405 Expert 2GB
I would do it in asp on the server side after posting.

Jared
Aug 25 '10 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Ian Davies | last post: by
reply views Thread by E . | last post: by
4 posts views Thread by anonymous | last post: by
3 posts views Thread by RJN | last post: by
5 posts views Thread by jung_h_park | last post: by
reply views Thread by NPC403 | last post: by
3 posts views Thread by gieforce | last post: by
reply views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.