Pramod Gupta
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. ?
By Pramod Gupta in JQuery on Sep 19 2015
  • Rahul Hendawe
    Dec, 2016 21

    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');}}); });

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS