I have a simple SharePoint site page (created in Site Page library). I added a simple jquery syntax here:
<script>
$(function() {
$("#button_overview").on("click", function(){ $("#homepagecontent").load("../description/overview.htm"); });
});
</script>
When I click the button, overview.htm is loaded for 1 sec and the entire page is refreshed. It cause the page render back to previous stage.
I have also tried .html("<p>hello</p>")
. The result is "hello" show up for 1 sec and page is refreshed.
Is it default SharePoint behavior? How can I work around it?