Closed ensean closed 8 years ago
Hi @ensean,
Check the rate
method to see how you can programmatically set the rating value.
Applied to your case it should be something like this:
$("#evalscore").rating('rate', res.evalInfo.score)
Hope it helps!
@dreyescat It works! I should have read the readme.md more carefully. Thanks a lot for your response.
Hi, I tried to set the initial value by jQuery, but I find that the initial value can not be shown unless the mouse flies over it. I also tried to fire the hover event on the rating input, but it doesn't work either...
``` html
javascript
$("#evalscore").val(res.evalInfo.score)