tags:

views:

19

answers:

1

My code:

$(document).ready(function() {
$('.tags').hover(function() {
    var id = this.id;
    $.post("tag_process.php", { tag: id }, function(data) {
     $("#entries").html(data);
     });
  });
});

I want #entries to hide(); when .tags isn't being hovered over. Is that possible?

+2  A: 

Try this out:

$(document).ready(function() {
$('.tags').hover(function() {
    var id = this.id;
    $.post("tag_process.php", { tag: id }, function(data) {
        $("#entries").html(data).show();
        });
  },function(){
    $('#entries').hide();
  });
});
PetersenDidIt
That works great. Thanks! :)
Andrew