marss,
thx for the reply. appreciate it. however, i'm a bit surprised why
internet explorer IE does not follow
the HTML specifications.
http://www.w3.org/TR/html401/interact/forms.html#h-17.6
it writes that the <OPTIONpart of the <SELECTelement does have an
intrinsic event of onclick.
thanks.
prashant marne.
---------------------------------------------------------------------------------------------------------------------------------------------------------
OPTION Attribute definitions
selected [CI]
When set, this boolean attribute specifies that this option is
pre-selected.
value = cdata [CS]
This attribute specifies the initial value of the control. If this
attribute is not set, the initial value is set to the contents of the
OPTION element.
label = text [CS]
This attribute allows authors to specify a shorter label for an
option than the content of the OPTION element. When specified, user
agents should use the value of this attribute rather than the content
of the OPTION element as the option label.
Attributes defined elsewhere
* id, class (document-wide identifiers)
* lang (language information), dir (text direction)
* title (element title)
* style (inline style information)
* disabled (disabled input controls)
* onclick, ondblclick, onmousedown, onmouseup, onmouseover,
onmousemove, onmouseout, onkeypress, onkeydown, onkeyup (intrinsic
events)
---------------------------------------------------------------------------------------------------------------------------------------------------------
marss wrote:
Quote:
prash.marne@gmail.com wrote:
Quote:
Hello,
I have a simple form
<form method="POST">
<select name="activity">
<option value="0">None</option>
<option value="M" onclick="popup_onclick()">Select
Multiple</option>
<option value="1">Kayaking</option>
>
Hi,
Option element has no onclick event in IE. Use onchange event of select
element instead.
>
<select name="activity" onchange="if
(this.options[this.selectedIndex].value=='M') popup_onclick();">
<option value="0">None</option>
<option value="M">Select Multiple</option>
<option value="1">Kayaking</option>
.....