Okay what I want:
collapse = object that is being collapsed.
This is unique, based on it's ID.
Example: class="collapse" id="Bingo"
Any "a" tag with data-toggle="collapse"should be able to open it
href="" would match collapse id.
Example: data-toggle="collapse" href="Bingo"
Ways to achieve this:
- Import the entire BOOTSTRAP JS (probably the easiest option, but that means more outside sources to link...)
- Find a way to come up with this JS myself (I already struggle with code... I dunno if this is such a good idea)
- Get the specific snippet I need (proving to be difficult because I can't seem to find it anywhere...)
- Find some other way to do collapses (booooooooooo)
How would I even code this...
Something like:
Look for: data-toggle=("collapse")
Look for: class=("collapse"), automatically hide, until button is pushed.
Open collapse if ID=#href
Link with href
Some placeholder content for the collapse component