Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML HTML Forms Choosing Options Going Further

Udomsak Duchanee
Udomsak Duchanee
3,110 Points

How to add datepicker into form?

How to add datepicker in form? when click on the field and have calendar popover to pick the date,

1 Answer

Hey Udomsak Duchanee,

You could always look up in the documentation if you need to. But still as you asked this question, I'm answering it, here's how you add date picker in the HTML form. You can add this in the HTML:

<form action="/action_page.php"> Birthday: <input type="date" name="bday"> <input type="submit"> </form>