enabled

The enabled methods has two modes of operation.
1. If you call it without any arguments, it will return a Boolean value, specifying if the control is enabled.
2. If you pass a Boolean value to the method, it will apply it to the control and either enable or disable it.

These are demonstrated in the sample below:

<div id="rating" ></div>
<script type="text/javascript">
$('#rating').shieldRating({
              max: 7,
              step: 1,
              value: 3,
              markPreset: false
          });

//this will disable the control
function Disable() {
    $('#rating').swidget().enabled(false);
}

//this will enable the control
function Enable() {
    $('#rating').swidget().enabled(true);
}

//this will alert whether the control is enabled
function IsEnabled() {
    alert($('#rating').swidget().enabled());
}

</script>