New to Kendo UI for jQuery? Start a free 30-day trial

Value

methods

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:valueNumber

The value to set.

Returns:Number

The value of the Rating.

<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>
Not finding the help you need?
Contact Support