Jump to content

Which w3schools example shows how to refresh page when option from drop down menu selected?


JimTrail

Recommended Posts

Hello w3schools forum!

 

Question: Which one of the w3schools Javascript examples shows how to refresh a page when user selects an option from a drop-down menu?

 

I have got a page with a month drop down menu and a day drop down menu. I want the user to select the month. After the user selects the month I want to fill the drop down select menu with the proper amount of days for that month.

 

Which one of the w3schools Javascript examples shows how to do that?

 

Thanks.

Link to comment
Share on other sites

I doubt there's a single example that specifically shows exactly what you want to do. You can use an onchange event to detect when one select element changes and use that event to populate the other element.http://www.w3schools.com/jsref/dom_obj_event.asphttp://www.w3schools.com/jsref/event_onchange.asp

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...