How do you implement the jQuery UI Datepicker validation when working in ASP.NET web form? The base for this validation is from this site: http://keith-wood.name/uiDatepickerValidation.html The problem I have is with the rule. Example:
$('#validateForm').validate({
errorPlacement: $.datepicker.errorPlacement,
rules: {
txtDatepicker: {
required: true,
dpDate: true
},
},
messages: {
txtDatepicker: 'Please enter a valid date (yyyy-mm-dd)',
}});
The "txtDatepicker" is the ASP:TextBox ID which changes when the page is rendered. How do I specify this in the above rule syntax? I tried to use property name="txtDatepicker" but it didn't work.