0

Let's say I have a select box

<select id="cartoons'>
 <option>Pogo</option>
 <option>Cartoon network</option>
</select>

I'm trying to add a mouseenter event to the second option like this

$("#cartoons").children().last().on("mouseenter", function () {
    alert("Hello world");
});

But it's not working. Fiddle here.

Huangism
  • 16,278
  • 7
  • 48
  • 74
Divyanth Jayaraj
  • 950
  • 4
  • 12
  • 29

0 Answers0