refresh

The refresh() method reloads the current instance of the AutoComplete widget.
The optional parameter options gives the possibility to extend the initial options with the new ones.


<input id="autocomplete" />

<script type="text/javascript">

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

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

</script>