G987
0
Q:

prevent button form submit

function myFunc(e){
       e.preventDefault();
}
0
<button type="button">Button</button>
1

New to Communities?

Join the community