JSFiddle - React, Tailwind, and code Playground

HTML

<form>
<input type="button" value="one" disabled />
<input type="button" value="two"  />
</form>

JavaScript

// find the elements
var $form = $('form');
var $buttons = $form.find('input[type=button]');

// event logic
$buttons.click(function(e) {
  $buttons.attr('disabled', false);
  $(this).attr('disabled', true);
});