visible

Called without any parameters, the visible() method returns true if the progress bar element is currently visible and false otherwise.

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


<div id="progress1"></div>

<script type="text/javascript">

     $(function () {
        $("#progress1").shieldProgressBar({
            value: 30,
            text: {
                enabled: true,
                format: "{0} %"
            }
        });

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

</script>