Create Validation for JQuery UI DatePicker exapmle
BresleveloperNS :http://bresleveloper.blogspot.co.il/2013/06/my-extenxtion-javascript-namespace.html BresleveloperNS = BresleveloperNS || {}; BresleveloperNS.ValidateDatePicker = function (dateSelector, errorMsg) { $(dateSelector).blur( function () { BresleveloperNS.ValidateDatePicker_ValidateHandler( this , errorMsg); }); } BresleveloperNS.ValidateDatePicker_All = function (errorMsg) { $( ".hasDatepicker" ).blur( function () { BresleveloperNS.ValidateDatePicker_ValidateHandler( this , errorMsg); }); } BresleveloperNS.ValidateDatePicker_ValidateHandler = function (dateSelector, errorMsg) { var txtDate = dateSelector.val(); var isTxtDateValid = true ; var dateFormat = $(dateSelector).datepicker( "option" , "dateFormat" ); try { txtDate = $.datepicker.parseDate(dateFormat, txtDate); } catch ...