Jquery – How to combine mouseenter and mouseleave function with ajax
Is it possible to cleanly combine this function. I am using mouseenter function to show my ajax page content and hide it with mouseleave $(function() { $("#card_client").mouseenter(function(){ $("#results").load("data/show_card.php"); $("#results").show(); }); $("#card_client").mouseleave(function(){ $("#results").hide(); }); });