Juicy
Juicy

Reputation: 12520

HTML, PHP: Change contents of SELECT listbox depending on selection in other SELECT listbox

I'm trying to make a form that allows my user to send a date to the server. I'm using one SELECT listbox to display the months. I would then like the other SELECT listbox to display the days of the month accurately depending on which month was selected (30 or 31 days, 28 or 29 for February).

How do you suggest I do this?

Alternatively if there is a smarter way of doing this than with listboxes I'm open to suggestions.

Upvotes: 0

Views: 257

Answers (1)

ChunkyBaconPlz
ChunkyBaconPlz

Reputation: 580

Don't reinvent the wheel, it's easier for you to leverage existing solutions people have come up with. Here's a good one:

http://www.eyecon.ro/datepicker/

Upvotes: 1

Related Questions