I have an HTML form with a single submit input, but also various button elements. When the user presses the 'enter' key, I'd expect it to actually submit the form, but instead (within Chrome 15 at least) I'm finding that it's triggering the first button (since that occurs earlier in the HTML than the submit input, I guess). I know that in general you can't force browsers to favour a particular submit input, but I really thought they would favour submit inputs over button elements. Is there a small tweak I can make to the HTML to make this work, or am I going to have to embrace some kind of Javascript approach? Here's a rough mockup of the HTML: Button 1 May 02, 2016 Please visit for more information. How to Enable Or Disable Submit Button. Nov 29, 2017. JQuery Practical Exercises with Solution: Disable/enable the form submit button. Aug 17, 2005 Right now, after I type some text in the textbox, hitting enter does not move the focus to the command button nor does it activate it. Use a button when you want to: Submit data to one or more data sources. Enable users to switch to another view of the form. HI Can anyone tell me what would be a quick and easy way to to enable and disable a submit button. Disable/Enable Submit Button HI. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2018
Categories |