Version compl�te: jsB@nk » Form » Dropdown » Ajouter des options
URL: https://www.javascriptbank.com/add-options.html
Le script peut être utilisé pour ajouter des options pour choisir par les visiteurs.
Version compl�te: jsB@nk » Form » Dropdown » Ajouter des 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-->