Tuesday, 9 December 2014

date validation in jquery

 $('body').on('change', '#RaTo', function () {
        if ($.datepicker.parseDate('dd-mm-yy', $('#RaFrom').val()) > $.datepicker.parseDate('dd-mm-yy', $('#RaTo').val())) {
            window.parent.window.parent.showMessage('Rent agreement fromdate should not greater than todate', 'error');
            return false;
        }

No comments:

Post a Comment