I find that if I have a form without a submit button, it will not be submitted (with an enter key). But if I add a submit button, it works
No submit button http://jsfiddle.net/VxF42/1/With submit button http://jsfiddle.net/VxF42/
I'm a little confused why this works -> 1 form element / submit button
http://jsfiddle.net/VxF42/1/
It seems that if I have a form with more than 1 form element, do I need a submit button? As I don’t have a submit button. I will use jQuery UI Dialog Buttons
, HTML- submit ( enter), ?
, . .
javascript triger, , .
, .
, , ( , , ), , , .
<form> <input> </form>
, Firefox 4, IE 8, Chrome 9, Opera 10 Safari 5.
in jquery, you can use the .submit () method for the input element, which I assume. I know that I did the same without the submit button.
Source: https://habr.com/ru/post/1785123/More articles:How to create field autofocus? - javascriptИспользование метода SVNClient.Diff Diff (целевой объект SvnTarget, диапазон SvnRevisionRange, результаты Stream) - sharpsvnF # Mathematical Libraries - Calculate Median - algorithmQuestion about constructors in Java - javaJavascript optimization. Is there an easier way to speed up Javascript? - optimizationGetting shell output using Python? - pythonGoogle App Engine Channel API Quota List? - javacmath interior decoration - c ++Что мне делать с потоком, когда это будет сделано? оставить его или прервать? - multithreadingHow to programmatically add an index in Cassandra 0.7 - javaAll Articles