I am using this below code for button click event using jQuery. When button is clicked the page reloads.
$(\'#button1\').click(function () { //Code goes
You can use event.preventDefault() to prevent the default event (click) from occurring.
$('#button1').click(function(e) { // prevent click action e.preventDefault(); // your code here return false; });