Is there any way to use the hover
event with jQuery in dynamically created selects options. I tried to use the function on()
and live()
but it did not work.
I tried this way:
$(document).on('hover', '.teste', function () {
alert("teste");
});
$(document).live('hover', '.teste', function () {
alert("teste");
});
$(document).delegate('hover', '.teste', function () {
alert("teste");
});
$('.teste').hover(function () {
alert("teste");
});
I also tried with mouseover()
instead of hover()