The plugins site is currently in development.
We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.
on click
| Project: | Star Rating Plugin |
| Version: | 1.0.0 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
settings = jQuery.extend({
cancel:'Cancel Rating',
click:function(){jQuery(this).parent().submit()}
}, settings);
when clicking, the default should be submitting the form imo
if not, then something like onclick: 'nothing'(default) <-> 'submit' <-> 'ajaxSubmit' would be helpful
- Login to post comments

Comments
#1
I completely disagree with submitting the form automatically when a star is clicked. This would cause more problem than it would solve and it would make it difficult to integrate the plugin with form that require other information.
But, I've added a callback function that let's you handle the form submission, like this:
$('.auto-submit-star').rating({ callback: function(value, link){ this.form.submit(); } });
Or like this for ajax submission:
$('.auto-submit-star').rating({ callback: function(value, link){ $(this.form).ajaxSubmit(); } });
Please get the latest version from:
http://www.fyneworks.com/jquery/star-rating/
#2