JSFiddle - React, Tailwind, and code Playground

HTML

<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.23/themes/cupertino/jquery-ui.css">
<div class="demo">

<form>
    
    press Enter in this text-input-field: <input type=text name=test />
    <div id="btn">
<input type="checkbox" id="check" /><label for="check">test</label>
    <button>x</button>
    </div>
        click trigger gets invoked by pressing enter in the text-input-field
</form>

</div><!-- End demo -->

JavaScript

$(function() {
        $( "button" ).button()
            .click(function(e) {
                alert(e.target.nodeName);
                return false;
            }).parent().buttonset();
    });