JSFiddle - React, Tailwind, and code Playground

HTML

<input type="text" id="inpt" value="I'm an input" /><br />
<a href="#" id ="but">Hey, there! Click me!</a>

JavaScript

$("#but").click(function() {
      alert($("#inpt").val());
    });