📜  使用 jquery 更改值 rateit.js - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:10.287000             🧑  作者: Mango

代码示例1
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();