Full version: jsB@nk » Form » Dropdown » Add options
URL: https://www.javascriptbank.com/add-options.html
The script can be used to add options to Select by visitors.
Full version: jsB@nk » Form » Dropdown » Add options
URL: https://www.javascriptbank.com/add-options.html
<SCRIPT>function Check(str){if(str=="Add More"){document.Test.Where.focus()}}function PutIn(w){document.Test.Cntry[document.Test.Cntry.length]=new Option(w,w,1,1)}</SCRIPT><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->
<FORM name=Test>Choose a country <SELECT onchange=Check(this.options[this.selectedIndex].value) name=Cntry> <OPTION value=Australia selected>Australia<OPTION value="New Zealand">New Zealand<OPTION value=India>India<OPTION value="Add More">Add More</OPTION></SELECT><br>Please type in your add on choice <INPUT onchange=PutIn(this.value) name=Where size="20"> <INPUT onclick=PutIn(this.form.Where.value) type=button value=OK> </FORM><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->