In Bootstrap, How to make a link (button) which toggles a region.
My intention is to Show/Hide debug information kept in a <div>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is nothing to do with bootstrap; it’s basic JavaScript.
Add an ID to the link, and to the
<div />you want to toggle, and then use the jQuerytoggle()method (as jQuery is included with bootstrap).You can even use
slideToggle()instead oftoggle()if you wanted a cool sliding effect.