0

I'm validating my from with jQuery Validate,and I've disabled the user input to Kendo Date. But the validation for datepicker is not working when I applied disabled="disabled" to the Kendo datepicker.

Sparky
  • 98,165
  • 25
  • 199
  • 285
Mallikarjuna Rao
  • 213
  • 1
  • 4
  • 17

1 Answers1

0

the validation for datepicker is not working when I applied disabled="disabled"

By default, the jQuery Validate plugin will never be able to validate disabled fields among other things.

See line 553:

.not( ":submit, :reset, :image, [disabled], [readonly]" )
.not( this.settings.ignore )

This behavior is hard-coded into the plugin and there is no option to disable it.

(It cannot be disabled using the ignore option.)

Sparky
  • 98,165
  • 25
  • 199
  • 285