javascript - How to give specific range to datetime input type? -


working on phonegap application, requires provide specific date range (for example, user should able pick future dates 10 days now).

testing application ipad. have tried min , max attributes not working.

<span class="field_text">preferred date &amp; time</span> <input id="checkout_datetime" type="datetime-local" class="text_box_cnt" required="required"/> 

please help...

use date instead of datetime-local.here example

<input id="checkout_datetime" type="date" min="2014-03-20" max="2014-03-30" class="text_box_cnt" /> 

reference http://www.w3.org/tr/html-markup/input.date.html


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -