Multiple Bootstrap Nav-Collapse Issue

So I have spent about 3 hours trying to figure out this scenario, which I would like to think is pretty simple in theory…

If I have a Main Nav, and a Secondary Nav which are both using the Bootstrap menu on the same page… How can I script it so if Main Nav is open and I click on Secondary Nav that Main Nav closes?

Let me specify, if nav is clicked it closes any others that are currently open. Thanks in advance!!

This isn’t the appropriate place for JS questions, please try over on SO along with the actual code you’re trying.

1 Like