i'm struggling to make reload a div trough javascript but for some reason everytime i push the button (the funcion its atacched to a button) it duplicates the content (mydiv-mydiv under mydiv) and i have no clue where's the catch : function reloadmydiv() { $("#mydiv").fadeOut(1500); setTimeout(function(){ $( "#mydiv" ).load(window.location.href + " #mydiv" ); }, 1000); $("#mydiv").fadeIn(1500); } Any help is appreciated.