[jQuery] CLick event for Select Box not supported by IE
Dear folk ,
I have a select box with Multiple Options
Such as below
<Select class="actions">
<option value="NEW">New/Edit</option>
<option value="a">1</option>
<option value="b">2</option>
<option value="c">3</option>
</select>
I wanted to bind a Click event to the select box , so when ever we
Click on the Option with the NEW value
alert box appears this is my code
$("select.actions option[value=NEW]").click(function(){
alert("worked");
});
this works in Firefox no problem I have problem in IE it doesn't work
without any error it seems .CLICK is not supported by IE for
Selectboxes , I also checked the .Change Worked
$("select.actions").change(function(){
if($(this).find("option[value=NEW]")
alert("worked");
});
But does anyone have an Idea or solution for me
Thanks