$("#content-main").find("fieldset").hover( //hover over function(){ $(this).fadeTo("slow", 1.0, function(){ //call back after fadeTo animation is done, check for click on element $(this).click(function(){ //if a click is registered hide the element $(this).hide("normal", function(){ //$(this).fadeOut('fast'); //$(this).load('/conf/edit/'+$(this).attr('id')); }); //end of hide effect //unbind hover event $(this).unbind("hover"); }); //end of click event }); //end of fadeTo effect }, //end of hover over event //hover out event function(){ //fade to effect $(this).fadeTo("slow", 0.8); } );