{"id":2922,"date":"2018-12-06T12:19:55","date_gmt":"2018-12-06T10:19:55","guid":{"rendered":"http:\/\/www.extradrm.com\/?p=2922"},"modified":"2020-10-04T21:49:38","modified_gmt":"2020-10-04T19:49:38","slug":"sharepoint-page-reloaded-when-i-click-the-button","status":"publish","type":"post","link":"https:\/\/www.extradrm.com\/?p=2922","title":{"rendered":"Sharepoint Page reloaded when I click the button"},"content":{"rendered":"<p>I used following accordion code, But my page reload or refresh when i click it.<\/p>\n<p><code><\/code><\/p>\n<p>&lt;h2&gt;IT Teams&lt;\/h2&gt;<br \/>\nClick on the buttons to open the collapsible content.<code><\/code><\/p>\n<p>&lt;button class=&#8221;accordion&#8221;&gt;USA&lt;\/button&gt;<br \/>\n&lt;div class=&#8221;panel&#8221;&gt;<code><\/code><br \/>\nJose Andrew<\/p>\n<p>Edward Gee<br \/>\n&lt;\/div&gt;<br \/>\n&amp;nbsp;<\/p>\n<p><code>\u00a0<\/code><\/p>\n<p>============================ Solution ==========================<\/p>\n<p>Add type=&#8221;button&#8221; to your &lt;button&gt; tag to stop the reload:&lt;\/button&gt;<\/p>\n<p>&lt;button class=&#8221;accordion&#8221;<strong> type=&#8221;button&#8221;<\/strong>&gt;&lt;\/button&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I used following accordion code, But my page reload or refresh when i click it. &lt;h2&gt;IT Teams&lt;\/h2&gt; Click on the buttons to open the collapsible content. &lt;button class=&#8221;accordion&#8221;&gt;USA&lt;\/button&gt; &lt;div class=&#8221;panel&#8221;&gt; Jose Andrew Edward Gee&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":2857,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[284],"tags":[],"youtube_video":null,"_links":{"self":[{"href":"https:\/\/www.extradrm.com\/index.php?rest_route=\/wp\/v2\/posts\/2922"}],"collection":[{"href":"https:\/\/www.extradrm.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.extradrm.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.extradrm.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.extradrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2922"}],"version-history":[{"count":0,"href":"https:\/\/www.extradrm.com\/index.php?rest_route=\/wp\/v2\/posts\/2922\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.extradrm.com\/index.php?rest_route=\/wp\/v2\/media\/2857"}],"wp:attachment":[{"href":"https:\/\/www.extradrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2922"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.extradrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2922"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.extradrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2922"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}