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. Quote 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. Quote 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();" Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.