Hi.
Anyone know how to add javascript to a select element? On each option I want onclick='document.submitbutton.value="something_relevant_to_the_option"'. Is that possible?
Cheers.
Hi.
Anyone know how to add javascript to a select element? On each option I want onclick='document.submitbutton.value="something_relevant_to_the_option"'. Is that possible?
Cheers.
Comments
Comment #1
Anonymous (not verified) commentedWorked it out:
More elegant solutions welcome.
Comment #2
Anonymous (not verified) commentedBy the way, just printing a script is bad... IE explodes. use this code:
Comment #3
tr commentedOriginal poster indicated in #1 and #2 that the problem is fixed.