Fyneworks JQuery Star Rating Plugin - Callback Infinite Loop
Hi all,
I am using the Fyneworks JQuery Star Rating Plugin and would like to implement a callback function for a click event.
Here some information is given how to proceed.
When clicking on a star, the callback function causes an infinite loop. How to prevent this?
- // auto-initialize plugin
- //$(function(){
- // $('input[type=radio].star').rating();
- //});
To replace the class 'star' at the input fields with '
auto-submit-star':
- <input name="star3" type="radio" class="auto-submit-star"/>
And use following function:
- $('.auto-submit-star').rating({
- callback: function(value, link){
- alert(value);
- }
- });