Forum Moderators: open

Message Too Old, No Replies

option onclick IE

         

FiRe

11:26 pm on Nov 22, 2006 (gmt 0)

10+ Year Member



This seems to work in firefox but not in IE:

<select>
<option value="au1">Australia 1</option>
<option value="au2" onclick="alert('test');">Australia 2</option>
<option value="au3">Australia 3</option>
</select>

Is is possible without adding an "onchange" statement in the select code?

daveVk

11:47 pm on Nov 22, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



MSDN documentation does not show onclick event for 'option'. Perhaps one of the following?

onpropertychange Fires when a property changes on the object.
onreadystatechange Fires when the state of the object has changed.
onselectstart Fires when the object is being selected.

FiRe

12:21 am on Nov 23, 2006 (gmt 0)

10+ Year Member



Nah none of those work, but thanks for confirming it anyways!