Skip to content
Advertisement

Tag: form-submit

Generalization of JQuery submit function

In my web application I have dozen of forms, of course each one with a different id. Then in my JavaScript file I wrote a custom handler for the submit event: I want to avoid to write the above code for each form. As first step I can just wrap it in another function, something like this: and then use:

Capturing jQuery form submit event

I don’t know what is wrong with that, because I was following at every step the tutorial from jquery.com regarding the form submit event. My Javascript: [Ofc. latest jQuery library is included]. Have also tried with the $(document).ready() event: Here is my HTML form code: So, regarding the above Javascript code, it is supposed to work (I mean it should

Advertisement