I am using jquery mask plugin for date entry in textbox and the date format is MM/DD/YYYY
. I want to do the validation while entering the date. Suppose if I enter month as 13
at that time it should alert me month is invalid, like that I need to do for date and year. My code is below,
$("#txtDate").mask("99/99/9999", { autoclear: false })
<input id="txtDate" type="text" placeholder="MM/DD/YYYY"/>
Any help is appreciated. Thanks in advance.