$('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;
}
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