visible

Called without any parameters, the visible() method returns true if the AutoComplete's suggestion list is currently visible and false otherwise.

Calling it with a boolean true or false parameter will show and hide the suggestion list respectively.


<input id="autocomplete" />

<script type="text/javascript">

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

    $("#autocomplete").swidget().visible(); // return true
    
    $("#autocomplete").swidget().visible(false) // hide the widget
    
    $("#autocomplete").swidget().visible(); // return false

</script>