edmicman
asked on
Dynamic text based on Drop down box selection?
I have an ASP/HTML form that contains a drop down select box. I want a section of text to dynamically change depending on what item is selected in the dropdown, and I'm asusming I can do this with Javascript. I've built a function that will change the text with the drop down is clicked, but I can't figure out how to get what value is selected in order to have different text displayed. Please help! Also, is there any way to assign the text that I want to change an ID outside of putting it in <p></p> tags? The paragraph formatting looks weird, as I really just want the text flush next to a form field. Thanks for the help!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
cubrovic: when one refreshes a page with a select box, the box does not return to the initial value. I wondered if this could be implemented for the case above?
cookie
ASKER
I dealt with page refreshes and default values using ASP when the page first loads. Then the javascript handled anything after that. Thanks cubrovic!
welcome.