I have a form and I'm collecting the entries of the form data and storing in my local storage. I'm able to validate the form (using jquery - validation.min.js plugin) and also creating a JSON.
But, I'm supposed to create JSON ONLY after validating the form with which I'm struck now.
NOTE:
- The validation function is in my validation.js file.
- The json creation function is within my HTML between script tag.
I commented the submit handler part:
submitHandler: function(form) {
form.submit();
},
thinking that the submit functions are colliding, but still the same result
I have a fiddle here FIDDLE