<Je*******@aol.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
I have found that the onclick does not fire for Option elements in IE.
Clicking on an option only fires the Select's onclick. Can someone
please confirm this?
If it is so then how would we best implement a case where only some of
the options in a select should trigger the onclick?
Thanks in advance for any input.
Test in the select's onclick:
<html>
<head>
<title>optClick.htm</title>
<script type="text/javascript">
function clicker(that) {
var pick = that.options[that.selectedIndex].value;
if (pick == "2") alert("Hello World");
}
</script>
</head>
<body>
<form>
<select name="sel" onclick="clicker(this)">
<option value="1">One
<option value="2">Two
<option value="3">Three
</select>
</form>
</body>
</html>