Attaches a change event to the select that gets the text for each selected option and writes them in the div. It then triggers the event for the initial text draw.
Edit code and click me
Your Result
(Some examples do not work in Google Chrome):
Chocolate
Candy
Taffy
Caramel
Fudge
Cookie
Edit the code above and click to see the result
www.xhtml.co.il
- Try it yourself