javascript - Date picker with custom start date -


i working on form, web application. have been researching on customizing date picker plugin. want use javascript/php date picker. issue user can choose date particular number. instance: today 02/08/2016, user can allowed choose date 10/08/2016. date before 10/08/2016 cannot selected. how can use php control such functionality? or there better way can achieve this?

i don't know if looking simple use.

hmtl

<!-- enter date after 2016-10-08 (you can make variable php code): -->  <input type="date" name="bday" min="2016-10-08"> 

with php eg.

<input type="date" name="bday" min="<?php echo date('y-m-d', (time() + 86400)); ?>"> 

86400 1 day in seconds.


see w3schools.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -