Skip to content Skip to sidebar Skip to footer

Livevalidation With The Jquery Datepicker

I'm currently using the LiveValidation library on a field that uses the jQuery UI datepicker. var expiry = new LiveValidation('expiry_date'); expiry.add( Validate.Presence, { failu

Solution 1:

While Defining js Datepicker on the field, mention
onClose: function () { this.focus(); },that automatically gets captured by LiveValidation.

$('#expiry_date').datepicker({
    dateFormat: 'dd/mm/yy',                 
    onClose: function () { this.focus(); }
});

Post a Comment for "Livevalidation With The Jquery Datepicker"