Skip to content Skip to sidebar Skip to footer

How To Give Specific Range To Datetime Input Type?

Working on Phonegap application, it requires to provide specific date range (for example, User should be able to pick only future dates up to 10 days from now). Testing applicatio

Solution 1:

Use date instead of datetime-local.Here is an example

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

Reference by http://www.w3.org/TR/html-markup/input.date.html


Post a Comment for "How To Give Specific Range To Datetime Input Type?"