I'm using Bootstrap 3.3.4 for my website.
I've a menu code snippet as follows :
<ul class="nav navbar-nav">
<li class="{{projects}}"><a href="/darpan/pages/project/projectList.html">Projects</a></li>
</ul>
The above code is working fine. When user clicks on menu 'Projects' the respective web page opens.
Now I want to add a sub-menu to the above menu. This sub-menu should open a new web-page linked to it. The code I tried for it is as follows:
<ul class="nav navbar-nav">
<li class="{{projects}}" class="dropdown">
<a class="dropdown-toggle projects"
data-toggle="dropdown"
href="/darpan/pages/project/projectList.html">
<span id="projects">Projects</span>
</a>
<ul class="dropdown-menu">
<li>
<a href="/darpan/pages/project/createNewProject.html">Add new project</a>
</li>
</ul>
</li>
</ul>
Now after doing this the issue I'm facing is when user clicks on menu 'Projects' the drop-down menu 'Add new project' opens up and upon clicking on 'Add new project' the respective web-page opens. This is perfect as per my requirement but what about the web-page associated with menu 'Projects' as it's not opening upon clicking on it. This should also work along with the drop-don menu functionality.
Can somebody please help me in this regard? Thanks.