Tag Archives: dropdown
Basic usage of the JS onChange() event handler
The onChange() event handler is used when the value of an input or select field is changed and based on that change an event is triggered: a form validator, a URL redirection based on the selected value from the dropdown etc.
Read moreDynamic DropDown with countries
Hi,
This is a snippet that creates a dynamic dropdown menu with countries. The select is created from the $countries array. You can set a country that will be selected automatically when the drop down is loaded. This can be done by editing the variable $default. You can specifying the key from the array (i.e.: 220 [...]
Dynamic dependant DropDown List (US States & Counties)
This is a dynamic Dependant DropDown list with US States & Counties. If a state is selected, a drop down with its counties appears.
Read more