- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Bootstrap Collapsible list group
To create a collapsible list group, use the panel-collapse property with list-group property.
Example
The list-group property lists items using the list-group-item property −
<!DOCTYPE html> <html> <head> <title>Bootstrap Example</title> <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet"> <script src = "/scripts/jquery.min.js"></script> <script src = "/bootstrap/js/bootstrap.min.js"></script> </head> <body> <div class = "container"> <h2>Questions/ Answers</h2> <p>Click below to learn about the technologies for which we provide Interview Questions.</p> <div class = "panel-group"> <div class = "panel panel-default"> <div class = "panel-heading"> <h4 class = "panel-title"> <a data-toggle = "collapse" href = "#test">Info</a> </h4> </div> <div id = "test" class="panel-collapse collapse"> <ul class = "list-group"> <li class = "list-group-item">Java</li> <li class = "list-group-item">PHP</li> <li class = "list-group-item">C++</li> <li class =" list-group-item">HTML5</li> <li class =" list-group-item">jQuery</li> </ul> </div> </div> </div> </div> </body> </html>
Advertisements