Thursday, 6 August 2015

Add Jquery Datepicker 6 Month Plus From Current Date Example


Some time you want to add that you can display date from current  to 6 month any other month
and other are disable than i have do in my example. you can set maxDate parameter in you
datepicker. if you want to disable current before all date then set minDate:'0'  you can check
below example i think it can help you. remove all parameter than it will display simple datepicker.

<!doctype html>
<html lang="en">
  <meta charset="utf-8">
  <title>jQuery UI Datepicker - Default functionality</title>
  <link rel="stylesheet" href="//"/>
  <script src="//"></script>
  <script src="//"></script>
  $(function() {
    $( "#datepicker" ).datepicker({ minDate:'0',maxDate: '+6m' });

<p>Date: <input type="text" id="datepicker"/></p>


Please check that example and see it it can use full.

No comments:

Post a Comment

Thank You For Comment