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.
精彩评论