How do I have a set area to change what is in it when a drop down select option is us

Glenn

Member
What I need is for the area just below the select option of a form to change each time a different option is selected. If option one is chosen, user will get a question and then an input field. If they change the option, a new question and field will show up in the same location.
 
Should be easy enough with javascript. Code an "onchange" event for your select element, and just modify what you need to depending on the new value. You can change text by changing the innerHTML property of a <p> or a <span> element.
 
Top