Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 67497

Hover and Focus need together

$
0
0

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>

Viewing all articles
Browse latest Browse all 67497

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>