<select name="#" id="#" onChange="display_div(this.selectedIndex);">
<option onClick="alert('hai')" >1</option>
Above onclick on 3rd line does not work in chrome. but works in ff. what could be wrong?
Please try here http://jsfiddle.net/WmEAp/
You shouldn't do it this way. onClick on an option isn't supported in IE or Chrome. The method to get it to work in them, won't work in Firefox. Your best bet is to find a different approach entirely.
hmm thanks for the note mawburn!!
This topic is now closed. New replies are no longer allowed.