开发者

Enable And Disable element rules

开发者 https://www.devze.com 2023-02-08 02:55 出处:网络
I have to enable and disable a element rules in run time, anyone knows how can i do that? I tried to do something like $(element).rules(\'disable\'), but this do开发者_C百科n\'t work fine.If you\'re t

I have to enable and disable a element rules in run time, anyone knows how can i do that? I tried to do something like $(element).rules('disable'), but this do开发者_C百科n't work fine.


If you're talking about the validator plugin, there's a "remove" option for the .rules() method.

.rules("remove");

or you can pass which rules to remove as a space-separated string of names as a second argument.

0

精彩评论

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