JqueryNo Comments

default thumbnail

Here is how to disable the previous months and previous days in Datepicker. We have to paste below script under the input field

HTML

<input type="text" id="visit">

Jquery

var dateToday = new Date();

 $('#visit').datepicker({
    minDate: dateToday
 });

Be the first to post a comment.

Add a comment