$(".hovertip").parent().live('hover', function() {
...
The above code doesn’t seem to register.
This doesn’t seem to work either:
$(".hovertip").parent().live({
mouseenter:
function() {
...
Any examples of .live, .delegate, .bind, or .on working with a jQuery selector and a .parent() selector with .hover() or mouseenter: and mouseleave:?
Update: I’ve created a separate question to address the dynamic DOM issue this Question has raised: jQuery .on() with a .parent() and dynamic selector
Try:
Note:
.onwas introduced in jQuery 1.8.Working demo http://jsfiddle.net/pRB8n/ Hover over test test – in the demo
If you really want to use
.delegatetry this please: http://jsfiddle.net/TURBX/2/ – http://api.jquery.com/delegate/Hope rest fits the needs
:)P.S. –
.liveis deprecated: for further if you keen – my old post here: 🙂 What's wrong with the jQuery live method?under category you will see: http://api.jquery.com/live/ “deprecated”