开发者

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()
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜