Wednesday 15 May 2013

javascript - JS Submit not the same as HTML Submit -


I have a form that needs to be submitted, now due to the design, I moved the code to submit these forms. Have to do and use JS to actually submit them.

It's working fine, there is no problem until I found a form unless there is another piece of JS that is now burning ... < P> My submitted JSs are as follows: submit the function () {document.details.submit (); }

It works great though it is a piece of JS that works when using the HTML button:

  $ ('form' ). Submit (function () {$ ('# sortdata'). Val ($ ("#sortable") .sortable ("serialize")); correct;});   

Any help / advice will be great because I am doing goals in the circle to change the names of elements in JS. This is definitely not possible?

Use jQuery submission method to trigger event handlers associated with jQuery: $ (document.details). Submit (); // For the shorthead. Triggers ('Submit')

This will submit the form in the same form, but submit


The problem was that the default method does not need to trigger event handlers binding to jQuery (or an event handler at all):

form Onsubmit event handler (for example, onsubmit = "return false;" ) This method will not be triggered when applying Ginkko based application Generally, this HTML The user is not guaranteed to be implemented by agents.

On the other side, of jQuery. Submit () / .trigger ('


  • Except that If event.stopImmediatePropagation () was called for an event previously given, but this is a completely different topic

No comments:

Post a Comment