I'm using jQuery replaceWith to replace a visible <div> with another. However for some reason when I click the link to initiate the replaceWith, the page reloads and causes the original <div> to appear again. Here's my jQuery:
$(function(){
    $("a#startSlide").click(function () {
        $('div#leftText').replaceWith('div#slide');
    });
});
Why is this reloading after the div is replaced?
 
     
     
    