JSFiddle - React, Tailwind, and code Playground

by icntfan

HTML

<!DOCTYPE html>
<html>
<head>
  <style>
  span.deneme{ text-decoration:line-through; }
  </style>
  <script src="http://code.jquery.com/jquery-latest.js"></script>
</head>
<body>
  <div>
    <span>Ali,</span>
    <span>Ahmet,</span>
    <span>Mehmet,</span>
    <span>Samet</span>
  </div>
  <div>
    <span>Ayşe,</span>
    <span>Fatma,</span>
    <span>Emine,</span>
    <span>Neşe</span>
  </div>
<script>
    $("div span:last-child")
        .css({color:"red", fontSize:"80%"})
        .hover(function () {
              $(this).addClass("deneme");
            }, function () {
              $(this).removeClass("deneme");
            });

</script>

</body>
</html