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


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

<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>

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.

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

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?
Aug 10 '10 #3
3,405 Expert 2GB
I would do it in asp on the server side after posting.

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.