Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

change value krajee star rating using jquery

Update the rating by setting a value via javascript. The method accepts a
rating value as a parameter. This method returns the rating input element
as a jQuery object and can thus be chained with other methods.

$('#input-id').rating('update', 3);

// method chaining 
var ratingValue = $('#input-id').rating('update', 3).val();
 
PREVIOUS NEXT
Tagged: #change #krajee #star #rating #jquery
ADD COMMENT
Topic
Name
8+2 =