Back

jquery不工作 (jquery not working/trigger )

发布时间: 2014-07-29 08:39:00

refer to: http://stackoverflow.com/a/25011343/445908

in my case there are multiple forms in current page, and I am using :

$('form').validate()

which makes jQuery.validate confused.   solution: assign a specify ID selector for your form. e.g.

$('#my_form_id').validate()

简言之:  为你的form 指定一个ID~ 

Back