JSFiddle - React, Tailwind, and code Playground

HTML

<input type="button" value="Want" />
<input type="button" value="Want" />
<input type="button" value="Want" />

JavaScript

var timesClicked = 0;
$('input').bind('click', function(event) {
  alert('Moar Cheezburgerz!');
  timesClicked++;
  if (timesClicked >= 2) {
    $('input').unbind(event);
    $('input').val("NO MOAR!");
  }
});