combodate icon indicating copy to clipboard operation
combodate copied to clipboard

does not work with jquery validation?

Open jinfang1234 opened this issue 8 years ago • 2 comments

This plugin seems not working with the jquery validation. Below is an sample codes showing that validation does not take effect. Can you please advise?

http://jsfiddle.net/5m6gG/376/

Thanks! Jin Fang test1

jinfang1234 avatar Jul 01 '16 16:07 jinfang1234

i think combodate is hidden fields and jquery validate by default ignore combodate so add ignore: [], in validate example link is here : [http://jsfiddle.net/5m6gG/439/]

bipin244 avatar Oct 26 '16 06:10 bipin244

@bipin244 I don't think that's a good solution because there are situations where a field may be hidden because it's irrelevant to the current state of the form, and only becomes relevant based on the value of another field.

I propose using the .sr-only technique introduced in Bootstrap to hide the actual input field. This way the field will not be considered hidden by jQuery (the default ignore value is :hidden) and validation will kick in.

dnasir avatar Nov 08 '16 08:11 dnasir