Skip to content Skip to sidebar Skip to footer

Submit A Form With Jquery / Javascript Without Ignoring "required" Tag

so I have the following form:

Solution 1:

Trigger click on the submit button instead.

http://jsfiddle.net/PdUcq/

Solution 2:

From this link,

required attribute works in most new browsers. In older browsers its not supported since its part of the HTML5 spec.

If you are looking for cross browser support with jquery you would have to use some plugin. One of the good ones is this plugin.

Or you can go ahead and write your own custom validators, but why re-invent the wheel.

Post a Comment for "Submit A Form With Jquery / Javascript Without Ignoring "required" Tag"