jQuery Button

Invoke the destroy method of the jqxButton. Author: http://jqwidgets.com

by jqwidgets

HTML

<link rel="stylesheet" href="https://jqwidgets.com/public/jqwidgets/styles/jqx.base.css">
<script src="https://jqwidgets.com/public/jqwidgets/jqx-all.js"></script>
<link rel="stylesheet" href="https://jqwidgets.com/public/jqwidgets/styles/jqx.energyblue.css">
<input type="button" value="Click me" id='jqxButton' />

JavaScript

$('#jqxButton').jqxButton({
    theme: 'energyblue'
});
$('#jqxButton').on('click', function () {
    // Destroy the Button
    $('#jqxButton').jqxButton('destroy');
});