Hi,
I'm using <!-- m --><a class="postlink" href="http://javascript.internet.com/forms/country.html">http://javascript.internet.com/forms/country.html</a><!-- m --> form which populates second dropdown based on the selection in the first one. It is neat because it also works in Netscape.
However I'd like to customise it because in the arrays it uses text as values and I like to use text as well as values in these arrays. As values I'd like to use numbers.
Something like:
var namericaArray = new Array("('Select country','',true,true)",
"('1,Canada')", "('2,USA')", "('3,Other')");
How can I do this by customising this script?
Any help would be appreciated.
I'm using <!-- m --><a class="postlink" href="http://javascript.internet.com/forms/country.html">http://javascript.internet.com/forms/country.html</a><!-- m --> form which populates second dropdown based on the selection in the first one. It is neat because it also works in Netscape.
However I'd like to customise it because in the arrays it uses text as values and I like to use text as well as values in these arrays. As values I'd like to use numbers.
Something like:
var namericaArray = new Array("('Select country','',true,true)",
"('1,Canada')", "('2,USA')", "('3,Other')");
How can I do this by customising this script?
Any help would be appreciated.