JSFiddle - React, Tailwind, and code Playground
by krampstudio
HTML
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js"></script>
<form id="aForm">
<input type="text" name="aText" value="something" />
<input type="button" name="aButton" value="anAction" />
</form>
JavaScript
//create a jquery ui button
$('#aForm').find(':button').button();
//reset the form (calls button('resfresh') in a setTimeout after 1ms
$('#aForm').get(0).reset();
//throw an : Error cannot call methods on button prior to initialization; attempted to call method 'refresh'
$('#aForm').find(':button').remove();