php - Datepicker with warning message? -


can little warning message applied datepicker can shown if date selected falls between today , numeric value of days in future ie +7 ?

i've tried set mindate , maxdate disallows selection of dates outside parameters. whilst kind of worked had flaw.. user can delete text in field , manually type in own date.. doesn't validated.

also, still everydate selected.. if within period set, that's when i'd message shown.

here's i'm using:

<script>      $(function() {           $( "#delivery_date" ).datepicker({ mindate: "+5d", maxdate: "", dateformat: "dd/mm/yy" });      });  </script>   <input type="text" id="delivery_date" name="delivery_date" required  /> 

there lot of options available official jquery ui date picker. have @ sample configuration

$("#datebox").datepicker({     mindate: 0,     autosize: true,     dateformat: 'yy-mm-dd',     setdate: new date(),     defaultdate: "+1w",     changemonth: true,     numberofmonths: 1,     onselect: function() {         // here can have function called when user selects date            myonchangefunction();     } }); 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -