Here is the code I am working with:
<div class="footer-menu">
<span>
<i class="fa fa-angle-right fa-md" aria-hidden="true"></i>World
</span>
<span>
<i class="fa fa-angle-right fa-md" aria-hidden="true"></i>Internet
</span>
<span>
<i class="fa fa-angle-right fa-md" aria-hidden="true"></i>Travel
</span>
<span>
<i class="fa fa-angle-right fa-md" aria-hidden="true"></i>Technology
</span>
<span>
<i class="fa fa-angle-right fa-md" aria-hidden="true"></i>Fashion
</span>
</div>
My goal is to add the float-right class to the i tag when hovering over the span using jQuery. However, the issue I am facing is that when I hover over one span, the class gets added to every i tag.
$( ".footer-menu span" ).hover(function() {
$('i').addClass("float-right");
});