Chrome onclick not firing on select option

Hello,

<select name="#" id="#" onChange="display_div(this.selectedIndex);">
      <option selected="selected">Select</option>
      <option onClick="alert('hai')" >1</option>
      <option >2</option>
      <option >3</option>
</select>

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.

Reference

hmm thanks for the note mawburn!!