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

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

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

google shop client API returns 400 bad request error while adding an item -