What does data-toggle attributes do in Twitter Bootstrap? I couldn\'t find an answer in Bootstrap API.
I have seen a similar question before as well, li
So many answers have been given, but they don't get to the point. Let's fix this.
http://www.w3schools.com/bootstrap/bootstrap_ref_js_collapse.asp
To the point
data- is not parsed by the HTML5 parser.data-toggle attribute to create collapse functionality.How to use: Only 2 Steps
class="collapse" to the element #A you want to collapse.data-target="#A" and data-toggle="collapse".Purpose: the data-toggle attribute allows us to create a control to collapse/expand a div (block) if we use Bootstrap.