开发者

Enable And Disable element rules

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜