1
Reply

I have a text box ...id is txtDOB. when i enter value in textbox,i have to check date i.e. should be before today. please provide the code snippet in JQuery. ?

Pramod Gupta

Pramod Gupta

9y
485
0
Reply

    Date:

    $(document).ready(function(){$( "#txtDOB" ).datepicker();$('#checkDate').bind('click',function(){var myDAte = $('#txtDOB').datepicker( "getDate" );var curDate = new Date();if(curDate>myDAte){alert('current date is high');}else{alert('selected date is high');}}); });