Html select option onchange submit form

Html select option onchange submit form

Posted: 7777777777 On: 24.05.2017

It's basically what the title says.. I have a form with a select control that I want to force the form to post back to self on change.

Using jQuery but there are many other options available By posting your answer, you agree to the privacy policy and terms of service. Stack Overflow Questions Developer Jobs Documentation beta Tags Users. Sign up or log in to customize your list.

How To Use JavaScript To Auto-Submit Dropdowns, With No Submit Button

Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us.

Log In Sign Up.

Join the Stack Overflow Community. Stack Overflow is a community of 7. Join them; it only takes a minute: Any help most appreciated!

html select option onchange submit form

While the example above works perfectly, I would do it like this: Nice simple example of unobtrusive js. In your example, what is the benefit to using jQuery?

I'm curious how to make this better. RyanEdwards, Adam's comment was mentioning the first part of my answer. Benefits of using jQuery? You can accomplish the same with less code.

html select option onchange submit form

PHPology 3 Change your select menu to this: Sign up or log in StackExchange. Sign up using Facebook.

HTML select tag

Sign up using Email and Password. Post as a guest Name. Stack Overflow works best with JavaScript enabled.

Thanks, Jonesy php javascript forms postback share improve this question. MathOverflow Mathematics Cross Validated stats Theoretical Computer Science Physics Chemistry Biology Computer Science Philosophy more 3.

Meta Stack Exchange Stack Apps Area 51 Stack Overflow Talent.

Rating 4,7 stars - 420 reviews
inserted by FC2 system