I got this error in console log but can't determine what's wrong. I would like to hide an element when the button is collapsed
$(".navbar-toggle").click(function() { if(".navbar-toggle").hasClass("collapsed") $(".country-flags-container").hide(); else $(".country-flags-container").show(); )} I appreciate your help for my learnings.