i was hoping someone could take a look at my code and tell me whats wrong..
HTML5:
<div class="btn-group" id="dropdown-wrapper">
<a href="#" data-toggle="dropdown" id="toggle-dropdown">Het 10-stappenplan <i class="fa fa-caret-down"></i></span></a>
<ul class="dropdown-menu">
<li><a href="#">Stap 1</a></li>
<li><a href="#">Stap 2</a></li>
<li><a href="#">Stap 3</a></li>
<li><a href="#">Stap 4</a></li>
<li><a href="#">Stap 5</a></li>
<li><a href="#">Stap 6</a></li>
<li><a href="#">Stap 7</a></li>
<li><a href="#">Stap 8</a></li>
<li><a href="#">Stap 9</a></li>
<li><a href="#">Stap 10</a></li>
</ul>
</div>
Jquery :
$(document).ready(function () {
$("a#toggle-dropdown").hover(function () {
$("a#toggle-dropdown").addClass("test");
})
});
i hope anyone can tell what i did wrong, i cant see to find out what i did wrong..
the Jquery is gonna be a bit different that this, because i want it to add the class open to the .btn-group whenever the user hovers over the a#toggle-dropdown.
toggle-dropdown) in your page.