1Update the rating by setting a value via javascript. The method accepts a
2rating value as a parameter. This method returns the rating input element
3as a jQuery object and can thus be chained with other methods.
4
5$('#input-id').rating('update', 3);
6
7// method chaining
8var ratingValue = $('#input-id').rating('update', 3).val();