Liam Macmillan
Liam Macmillan

Reputation: 398

PHP select input calendar?

I'm looking to see if there's anything that does this out there / someone has already done it and outsourced the code before I write the code myself.

I have the following date selection:

I want to make it so that when you select a month the correct amount of days for the month are automatically shown in the day drop down. My idea to do this myself is use JQuery to detect when a user selects a month and then manually .hide the select days that should not be there.

Anything else out there that does this?

Upvotes: 0

Views: 639

Answers (1)

Vinícius Fagundes
Vinícius Fagundes

Reputation: 2041

You can solve this using HTML5 input type=date

<input type="date" />

Try it here Tryit Editor -W3Schools

Upvotes: 1

Related Questions