JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.css">
<script src="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.js"></script>
<div data-role="page" data-theme="b" id="jqm-home">
<div data-role="content">
<span>This button is enabled</span>
<input type="button" id="button1" name="button1" value="button1" />
<span>This button will be disabled after you click it</span>
<input type="button" id="button2" name="button2" value="button2" />
</div>
</div>
JavaScript
$('#button2').click(function() {
alert('Button2 has been clicked');
$('#button2').attr("disabled", "disabled");
});
$('#button1').click(function() {
alert('Button1 has been clicked');
});