I am currently using Bootstrap 3.3.4
Here is the HTML code I am working with:
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<ul class="nav navbar-nav">
<li class="projects" class="dropdown"><a class="dropdown-toggle projects" data-toggle="dropdown" href="#"><span class="projects">Projects</span></a>
<ul id="projects-menu" class="dropdown-menu">
<li><a href="/prj/pages/project/projectList.html">List</a></li>
<li><a href="/prj/pages/project/createNewProject.html">Add new project</a></li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
With jQuery, I am trying to hide the sub-menus under the main menu item 'Projects':
$(document).ready(function() {
$("ul#projects-menu").children().hide();
});
Although the menu items are hidden, a small white background appears underneath the menu that I want to remove. Here is an image for reference: https://i.sstatic.net/scgFU.png
If anyone can assist me with this issue, I would greatly appreciate it.
Thank you.