hello!
i need to assign a behaviour triggered via the hoverIntent plugin to elements fetched via ajax. I would assume i should use the livequery plugin for that, but my attempts have failed miserably so far.
Here is the non livequery code, that works for DOM elements present on document ready:
$('ul.mainmenu:not(#applicationTitle)').hoverIntent({ sensitivity: 2, interval: 0, over: function(){ $('li, li a', $(this)).addClass('visible'); }, timeout: 0, out: function(){ $('li, li a', $(this)).removeClass('visible'); } }) i tried this, but it doesn't work _ Any help *much* appreciated, thanks !! $('ul.mainmenu:not(#applicationTitle)').livequery(function(){ $(this).hoverIntent({ sensitivity: 2, interval: 0, over: function(){ $('li, li a', $(this)).addClass('visible'); }, timeout: 0, out: function(){ $('li, li a', $(this)).removeClass('visible'); } }); })