destroy

The destroy() method destroys the instance of the Button widget.


<button id="but1" ></button>

<script type="text/javascript">

     $(function () {
        $("#but1").shieldButton({
        });
    });

    $("#but1").swidget().destroy();

</script>