afridy — 2014-04-28T07:25:12-04:00 — #1
<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/
mawburn — 2014-04-28T10:20:18-04:00 — #2
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.
afridy — 2014-05-05T07:17:42-04:00 — #3
hmm thanks for the note mawburn!!