use on change or submit for a form js code example Example: select form submit onchange <select onchange="this.form.submit()"> ... </select>