value
Gets or sets the value of the Rating.If the passed value is smaller/bigger than the min/max option, then the min/max value will be automatically selected.
- The
value
method does not trigger select or change events. Those events are triggered by user interaction.
Parameters
value Number
The value to set.
Returns
Number
The value of the Rating.
Example
<input id="rating" />
<script>
var ratingInstance = $("#rating").kendoRating({
min: 1,
max: 6,
}).data("kendoRating");
ratingInstance.value(3);
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(ratingInstance.value());
</script>