SyntaxFix
Write A Post
Hire A Developer
Questions
Better to use default collapse.js methods (V3 docs, V4 docs):
$('.nav a').click(function(){ $('.nav-collapse').collapse('hide'); });