Hi i have a question fixing my code. Mouseover() or hover() works perfectly but not when the pointer leaves the icon. It was supposed to be an icon that changes into a number when hovered then goes back to icon when pointer leaves. It only works normal if the pointer gently leaves left or right side.
Here is the code
HTML:
<article class="one_quarter first" id="ccount1" ><a class="ringcon btmspace-50" id="count1" href="#"><i class="fas fa-location-arrow"></i></a>
<h6 class="heading">In Queue Messages</h6>
<p>Queue Messages - Count of messages currently sending.</p>
</article>
Script:
<script>
$(document).ready(function(){
$("#count1").hover(function(){
$("#count1").html('<i> 0 </i>');
});
$("#count1").mouseleave(function(){
$("#count1").html('<i class="fas fa-location-arrow"></i>');
});});</script>
Help me please. Thank you T_T