maggiemay654
06-04-2003, 08:17 PM
Hello,
Is it possible to have two 'values' within a selection attribute?
I want one value to remain in this field, and a different value to be sent to another field.
For instance, In the 'State' field, if they pick AL, I want the 'shipping' field to show 2nd Day Air. Without two different values to call out, my coding sends me the same information in both fields in the resulting email, here's the code I'm using:
<head>
<script language="JavaScript">
function sendValue(s){
var selvalue = s.options[s.selectedIndex].value;
window.document.ORDER_FORM.shipping.value = selvalue;
}
</script></head>
State: <select name=state onClick="sendValue(this.form.state);">
<option value="AL - UPS 2nd Day Air">Alabama</option></select>
Shipping:<INPUT TYPE=text NAME="shipping" readonly>
Thanks for any help! :D
Is it possible to have two 'values' within a selection attribute?
I want one value to remain in this field, and a different value to be sent to another field.
For instance, In the 'State' field, if they pick AL, I want the 'shipping' field to show 2nd Day Air. Without two different values to call out, my coding sends me the same information in both fields in the resulting email, here's the code I'm using:
<head>
<script language="JavaScript">
function sendValue(s){
var selvalue = s.options[s.selectedIndex].value;
window.document.ORDER_FORM.shipping.value = selvalue;
}
</script></head>
State: <select name=state onClick="sendValue(this.form.state);">
<option value="AL - UPS 2nd Day Air">Alabama</option></select>
Shipping:<INPUT TYPE=text NAME="shipping" readonly>
Thanks for any help! :D