JQuery validate ignore [] and more -


i need validate hidden fields, have below (validate hidden fields)

$.validator.setdefaults({ ignore: [] }); 

i ignore class well, i'm not sure of syntax both.

$.validator.setdefaults({ ignore: "[], .ignorethisclass" }); 

this not work how can specify both validate hidden , ignore class?

add class array instead.

$.validator.setdefaults({ ignore: [".ignorethisclass"] }); 

it's array of jquery selectors. if element matches selector, ignored. default [":hidden"] why making [] makes allow hidden elements.


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -