Possible Duplicate:
Using delegate() with hover()?
I am trying this code, but apparently I am doing something wrong. With this code the hover
effect doesn't work.
However something like : $('.group>span').hover (function() {
works well but I need to delegate the html()
content.
<div class="group">
<span></span>
</div>
$('.group>span').delegate("hover", "a", function() {
$(this).html('<a href="#new_list">Some button</a>');
}, function() {
$(this).empty();
});
Any idea? thanks