I am using jQuery validate for validate an input. My code:
$(\'#button\').click( function() { $(\"#form\").validate({ rules: {
Use form method form() method with your click event
form()