jQuery Rating Change Options Dynamically

To change any of the widget options dynamically you need to get the initial options, change the desired properties and call the widget refresh(options) method, passing the new values.
This is demonstrated in the code below:

<div id="rating"></div>
<script type="text/javascript">
$("#rating").shieldRating({
    min: 0,
    max: 12
});
function changeOptions() {
    var rating = $("#rating").swidget(),
    options = rating.initialOptions;
    options.max = 20;
    rating.refresh(options);
}
</script>