I am trying to use a rating plugin which has the following bind command.
$("#rateit10b").bind('over', function (event, value) {
$(this).attr('title', tooltipvalues[value - 1]);
});
The html is
<div class='rateit' id='rateit10b' data-rateit-step='1' >
</div>
But I am loading the html via ajax. The jquery does nt seem to work. Can I use .live() with this?
Use
.on, delegation style:Several things:
.live. It’s removed in jQuery 1.9documentif you canoveran event type? Do you meanmouseover?