EchoFool Posted November 13, 2009 Share Posted November 13, 2009 How would you make a <select> box so that when you select the option you want rather than also then having to have a submit box, i want to try to get JS to post the submit once a selection is picked, how do you do this in JS? Hope you can help. Link to comment https://forums.phpfreaks.com/topic/181340-select-box-acting-as-a-post-submit/ Share on other sites More sharing options...
RichardRotterdam Posted November 13, 2009 Share Posted November 13, 2009 i want to try to get JS to post the submit once a selection is picked I think you want to look into ajax not sure. use a onblur event to see whether a value gets change of a select element. Link to comment https://forums.phpfreaks.com/topic/181340-select-box-acting-as-a-post-submit/#findComment-956802 Share on other sites More sharing options...
Adam Posted November 13, 2009 Share Posted November 13, 2009 Could use something as simple as... onchange="document.formNameHere.submit();" Link to comment https://forums.phpfreaks.com/topic/181340-select-box-acting-as-a-post-submit/#findComment-956824 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.