I am not too familiar with JavaScript, but I need some help with a dropdown menu originally built only using CSS. As the page developed, we had a developer add some JavaScript to autofill in the list items (li) using information stored in our .js file.
When clicked, the JavaScript links do not totally refresh the page. The links just pull content from our .js file and update the content on the page. It does not close the dropdown menu. How do I get the dropdown menu to collapse on click?
This is the code for the first half of our current (working) navbar.
<div class="row" style="padding-bottom: 15px; z-index: 3;">
<div class="col-lg-12 topmenu" ng-controller='HeaderCtrl' top-nav=''>
<ul>
<li class="drop">
<a href="#">Color</a>
<ul class="hiddennav three-col">
<!-- <ul class='colors-ul'> -->
<li ng-repeat='color_name in uniq_colors'>
<a ng-bind='color_name' ng-href='#/?color={{color_name}}'></a>
</li>
</ul>
</li>