Close the responsive menumen item clicked?

3 views
Skip to first unread message

Henrik Holmberg

unread,
Apr 18, 2015, 6:49:11 PM4/18/15
to duran...@googlegroups.com
Tried many ways to get this to work now and I haven't found a good way to do this.
Maybe I'm putting the jQuery code in the wrong place because when I execute it from javaconsole it works as it should.

Where should I put the

           
$(document).ready(function () {
    $
(".navbar-nav").find("li").on("click", "a", function(event) {
        $
(".navbar-collapse").collapse('hide');
   
});
});

To make it work?
Or is it wrong code?


/Henrik
Reply all
Reply to author
Forward
0 new messages