We have a validation related requirement on the datepicker control. The datepicker control should not allow alphabets or special chars to be keyed in. It should allow only numerics, backspace and forward slaces keys for example: 10/10/2022.
The requirement is to validate it as soon as its keyed in instead of when the control lose focus.
Because datepicker control does not have keydown/key press event, I added a jquery script as below and it works fine but we dont want to repeat the script for all the date pickers controls on different screens across the project. Is there any feature of the control it self that can be used everywhere??