Sharepoint Page reloaded when I click the button
I used following accordion code, But my page reload or refresh when i click it.
<h2>IT Teams</h2>
Click on the buttons to open the collapsible content.
<button class=”accordion”>USA</button>
<div class=”panel”>
Jose Andrew
Edward Gee
</div>
============================ Solution ==========================
Add type=”button” to your <button> tag to stop the reload:</button>
<button class=”accordion” type=”button”></button>