Jquery validation on click event instead of on submit

Posted by Mazzi on Stack Overflow See other posts from Stack Overflow or by Mazzi
Published on 2010-03-23T04:16:59Z Indexed on 2010/03/23 4:21 UTC
Read the original article Hit count: 226

Filed under:
|
|

I looked all around SOF but no luck to find me answer. It is either too easy or the answer is not just there.

What I simply need to do is to validate the form when my <img id='submit'/> is clicked and submit it afterwards.

$(document).ready(function(){

   $('#submit').click(function() {

   }); 

   // Validation
   $('#suzuki_scb').validate({
       // My Rules and Messages!
   }); 
});

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about validation