visible

The visible() method, called without any parameters, will return true if a switch is visible and false otherwise.

The visible(bool) method is used to update a Switch visible state. Passing true will show and false will hide the switch.

<input id="switch" type="checkbox" />

<script type="text/javascript">
    $(function () {
        $("#switch").shieldSwitch({
            checked: true
        });

        // hide the switch
        $("#switch").swidget().visible(false);
    });
</script>