why does it refresh when submit button code example
Example 1: submit() refreshes the page
<form onsubmit="return false;">Form stuff in here</form>
Example 2: make submit button not refresh page
If possible, change it to a normal button
<form onsubmit="return false;">Form stuff in here</form>
If possible, change it to a normal button