JSFiddle - React, Tailwind, and code Playground

HTML

<form>
<div class="tr" id="widget306">
  <div class="td col-grab">
    
      <button type="button" class="button grab formwidget" id="widget611">m</button>
    
  </div>

  <div class="td col-name">
    
      <input type="text" name="name" value="target volume profile 1" id="widget607" class="formwidget textbox">
    
  </div>

</form>

JavaScript

$('form').on('submit', function() {
    // i expect to see the following alert when i focus on an
    // input element and press the return key, but i don't
    alert('form submitted');
    return false;
});