Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Member
68 Points
33 Posts
Dec 20, 2011 06:42 AM|LINK
hi, i've a form with jQuery Validate.
when i use a input type submit, works fine, but i use a href for design and a onclick function
<a href="#" onclick="document.forms['jValidate'].submit();" class="positive"><img src="/Images/Buttons/disk.png"/>Sauv.</a>
the submit function works, my data are updated in the database but the validate jquery doesn't work.
here my jquery code :
<script type="text/javascript"> $().ready(function() { // jValidate $("#jValidate").validate({ rules: { Categorie: {required: true}, Societe: {required: true}, Nom: {required: true}, Email: {required:true}, Motdepasse: {required:true} } }); }); </script>
how can i do to work jValidate ?
Thank you for your help
Rorah
Member
68 Points
33 Posts
validate jquery submit
Dec 20, 2011 06:42 AM|LINK
hi, i've a form with jQuery Validate.
when i use a input type submit, works fine, but i use a href for design and a onclick function
the submit function works, my data are updated in the database but the validate jquery doesn't work.
here my jquery code :
<script type="text/javascript"> $().ready(function() { // jValidate $("#jValidate").validate({ rules: { Categorie: {required: true}, Societe: {required: true}, Nom: {required: true}, Email: {required:true}, Motdepasse: {required:true} } }); }); </script>how can i do to work jValidate ?
Thank you for your help