value

The value methods has two modes of operation.
1. If called without a parameter, it will return the current value for the widget.
2. If a value is passed, this value will be set as the current value for the rating widget.

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 return the current value of the widget
function getValue() {
    alert($('#rating').swidget().value());
}

// this will set a value of 4 for the rating
function setValue() {
    $('#rating').swidget().value(4);
}

</script>