value

The value() method is used for getting the current value of a ProgressBar.

Calling the value(value) method with a new value provided will update the progress bar's value (and trigger the change event).


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

<script type="text/javascript">

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

        $("#progress1").swidget().value(); // return 30
    });

</script>