JSFiddle - React, Tailwind, and code Playground

by bairog

HTML

<link href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" rel="stylesheet">

<html>
<head>
  <meta charset="utf-8">
  <title>bind demo</title>
  <style>
  p {
    background: yellow;
    font-weight: bold;
    cursor: pointer;
    padding: 5px;
  }
  p.over {
     background: #ccc;
  }
  span {
    color: red;
  }
	
  </style>
  <script src="https://code.jquery.com/jquery-3.5.0.js"></script>
</head>
<body>
 
 <div><a class="tabit-button" title="Ответить на сообщение"><i class="fas fa-reply"></i></a> | 
 <a class="tabit-button" title="Плюс"><i class="fas fa-plus"></i></a></div>
 
 <div><a class="tabit-button" title="Ответить"><i class="fas fa-reply"></i></a> | 
 <a class="tabit-button" title="Минус"><i class="fas fa-minus"></i></a></div>
<span></span>
 
<script>

$("i.fas.fa-reply").bind( "click", function( event ) {
  var str = "( " + event.pageX + ", " + event.pageY + " )";
  $( "span" ).text( "Click happened! " + str );
});
</script>
 
</body>
</html>