JSFiddle - React, Tailwind, and code Playground

by icntfan

HTML

<!DOCTYPE html>
<html>
<head>
  <style>span {display:none;}</style>
  <script src="http://code.jquery.com/jquery-latest.js"></script>
</head>
<body>
  <p><input type="text" /> <span>focus olayı</span></p>

<p><input type="password" /> <span>focus olayı</span></p>
<script>
    $("input").focus(function () {
         $(this).next("span").css('display','inline').fadeOut(1000);
    });
</script>

</body>
</html>