there is no need to js or jquery.
to stop page reloading just specify the button type as ‘button’.
if you dont specify the button type, browser will set it to ‘reset’ or ‘submit’ witch cause to page reload.
<button type="button">submit</button>
there is no need to js or jquery.
to stop page reloading just specify the button type as ‘button’.
if you dont specify the button type, browser will set it to ‘reset’ or ‘submit’ witch cause to page reload.
<button type="button">submit</button>