Bootstrap Accordion With Plus Minus Icon W3schools Code Example


Example 1: html faq

<html>   <body bgcolor="E1C699">   <ul>     <li><strong>What is (WEBSITE)?</strong> <br> <br><em><strong>(WEBSITE)</strong> is a/an (DEATILS).</em><br></li>     <br><li><strong>How do I post a (na)</strong> <br> <br><em>To create a (na), simply, go to the <strong>(website) homepage</strong> and click "Create a (na)"</em></li>   </ul> <style>         body {           background-color: navy;         }       </style>   </body> </html>

Example 2: on button click show collapse div jquery

$(function() {   var b = $("#button");   var w = $("#wrapper");   var l = $("#list");   b.click(function() {     w.toggleClass('open'); /* <-- toggle the application of the open class on click */   }); });

Comments

Popular posts from this blog

Are Regular VACUUM ANALYZE Still Recommended Under 9.1?

Can Feynman Diagrams Be Used To Represent Any Perturbation Theory?