destroy

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


<input id="autocomplete" />

<script type="text/javascript">

     $(function () {
       $("#autocomplete").shieldAutoComplete({
            dataSource: {
                data: myData
            }
        });
    });

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

</script>