JSFiddle - React, Tailwind, and code Playground

HTML

<form><input id="input" value="" /></form><input type="button" id="button" value="Click me!" />
<div id="wtf">Type something in input field and then click the button</div>

JavaScript

$().ready(function() {
          
          
          $('#button').on('click', function(e) {
              $('#wtf').html("I don't need to change #input in this case");
          }); 
          
          $('#input').on('change', function(e) {
              $(this).val($(this).val()+' - changed!');
          });  
      });