i am trying to show the span when hover in and focus in .but i am unable bind both methods together. Here is the code a snippet. Every help or guidance should be appreciated :)
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script><script>
$(document).ready(function(){
$("#101").hover(
function(){ $("#spn1").css("color", "red").show();
});
$("#101").focusin(function(){
$("spn1").css("color", "red").show();
});
$("#101").focusout(function(){
$("#spn1").css("color", "red").hide();
});
});
</script><input type="text" id="101"><span style="display:none;" id="spn1">limit 0-100</span>