Linked Questions

0 votes
2 answers
315 views

<ul class="nav"> <li> <a href="/dashboard"> <i class="material-icons">dashboard</i> <p>Dashboard</p> </a> ...
Kalariya_M's user avatar
  • 1,421
1 vote
2 answers
7k views

I'm trying to use jquery to initialize the active class for a navigation menu when loading it as a separate html file. I am not familiar with PHP and I'm pretty new to website generation, so I'm not ...
Liz Livingston's user avatar
2 votes
2 answers
3k views

THE AIM After refreshing the browser, I would like that the user stays in the menu/content they were before refreshing. THE PROBLEM After refreshing the browser, the content of the particular menu ...
Joehat's user avatar
  • 1,139
0 votes
1 answer
3k views

I have a basic side menu structure which is generated dynamically based on post topics. Using the code below I am able to individually highlight the active link as intended when viewing the individual ...
Ken's user avatar
  • 388
0 votes
1 answer
1k views

I'm trying make a navigation menu following the bootsrap API. Here is what I have: <ul class="nav nav-tabs" role="tablist"> <li class="active"><a href="Home" role="tab" data-...
Qvatra's user avatar
  • 3,867
1 vote
1 answer
1k views

I want to have active menu items in my navigation based on URL and ID, not href. None of the available solutions (this one, this one , or this one) worked for me. My Navigation looks like this <nav ...
M. V.'s user avatar
  • 15
0 votes
3 answers
549 views

I am new to JQuery and am trying to add an 'active' tag to a bootstrap class. Can anyone let me know if there is something wrong with my syntax in my .js file. Here is my base.js file: $(document)....
Andy's user avatar
  • 738
1 vote
1 answer
789 views

I'm trying to build on top of a Jekyll template to build a blog style site. I'm currently in the process of writing and styling the navigation, which is giving me a couple of problems. Using the ...
jbowman's user avatar
  • 408
0 votes
2 answers
601 views

I have a navagation list written with bootstrap css: <ul class="nav navbar-nav navbar-right"> <li class=""><a href="index.html">Home</a></li> <li class="">&...
Elijah Cruz's user avatar
0 votes
1 answer
589 views

I'm trying to make call a navigation bar(navbar.html) in to my index.html. Navbar.html has its own css and inside navbar.html is a script that changes the class of <li> when <a> is pressed....
user avatar
1 vote
2 answers
547 views

There are 2 scenarios for this issue: with using preventDefault() Without using preventDefault() I am changing the active class using jQuery. What happens when I use preventDefault(): As you can see, ...
chetan kambli's user avatar
0 votes
1 answer
618 views

I want to make a menu, and change the class of parent li and child li when clicking. When I click on the li with no class="active", I want jQuery to add a class on the empty li and its child li and ...
Tejas's user avatar
  • 471
0 votes
1 answer
549 views

I have a bootstrap navbar and I am trying to use javascript to change which nav link has the active click based on which navlink was clicked. The problem I am having is that when the user clicks a nav ...
javathebean's user avatar
1 vote
2 answers
297 views

Hello i want to ask why my code doesn't work. I use ruby on rails with bootsrap and haml. Here is my javascript code: :javascript $(".nav navbar-nav li a").click(function() { $(this).parent()....
Titas Kurtinaitis's user avatar
-1 votes
3 answers
450 views

I am working on a navigation bar Active color on my navigation bar is not working.Hover is working fine but not the active.In when from browser i select toogle element state and click on active ...
Nadeem's user avatar
  • 261

15 30 50 per page