How To Submit A Form On Select Change
erics, May 3rd, 2011
1 |
<select onchange="this.form.submit();"> |
1 |
<select onchange="this.form.submit();"> |
Some examples of how to access the option values and text in an HTML SELECT via javascript: onchange=”groupsFilter(this.options[this.selectedIndex].value); return false;” onChange=”if (this.options[this.selectedIndex].value != ”) submit()” Take the option text currently highlighted and use it to populate another location in the web page: replaceSpan(‘unit1’,this.options[this.selectedIndex].text);