php - How to submit a Form without using Submit event on Button. -


i've made simple calendar can select year , month through dropdown list.

<form name=calenderselect method='post' action='calendar.php'> <select name='month' id='month'> <option>january</option> <option>februari</option> <option>march</option> .... </select> <input type='submit' name='submit' value='change' /> </form> 

i find abit annoying have press submit button every time want change month. change moment click month in list.

you need client-side event achieve (maybe "onchanged" select?)

1.listen event: add onchange="submitform() select tag 2.define submitform() javascript function. simple form submit, nothing long

done!

look in google: "how submit form through javascript":


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -