Hello,
I'm trying to do an onchange in the dropdown options but unfortunately it only works in IE and not in firefox, how is it possible to make it work in firefox?
Part of Code:
Code:
<form method="post" action="*****.php">
<SELECT NAME='country' class='inputbox' onChange="areacode.value=this[this.selectedIndex].value2">
<OPTION value2="" VALUE=''>---- Select here ----</OPTION>
<option value2="93" value="1" >Afghanistan</option>
<option value2="355" value="2" >Albania</option>
<option value2="213" value="3" >Algeria</option>
<option value2="684" value="4" >American Samoa</option>
<option value2="376" value="5" >Andorra</option>
<option value2="244" value="6" >Angola</option>
<option value2="1264" value="7" >Anguilla</option>
<option value2="672" value="8" >Antarctica</option>
<option value2="1268" value="9" >Antigua And Barbuda</option>
<option value2="54" value="10" >Argentina</option>
<option value2="374" value="11" >Armenia</option>
<option value2="297" value="12" >Aruba</option>
</SELECT>
<input type="text" size="2" name="areacode" DISABLED>
</form>
I need the value2 to be entered in the textbox and not necessary to be submitted to the form, but the value should be submitted, when I try this code on Firefox on each select I get undefined, but it works on IE. So what's the solution for firefox. Please help
Regards,