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'); } }); });Interviews1 answer
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. ?
1 Answer
Rahul HendawePosted Dec 21, 2016, 2:05 AM EST

