How to call jquery validation from javascript?
I ve placed a sma开发者_StackOverflow社区ll validation in a javascript function . Now i need to call jquery validation from javascript function .. how can i call the jquery validation from javascript ???
From the jquery tutorial site
you can do:
$("input[type='text']").change( function() {
// check input ($(this).val()) for validity here
});
if you want to validate text inputs
You need to call the form() method of the validation plugin
var valid = $('form').validate().form()
精彩评论