doej doej - 1 year ago 78
jQuery Question

how to retrieve the value of the star clicked in a jquery star rating

I am using a jquery star rating plugin.the link is [here] (
here's the image

I have a table in which one column have a star rating to rate an item. I am looping the star rating to rate the item present in all rows.I need to get the value of star clicked in each row . However i couldn,t get the value of star clicked in each row. please help me with this.

Answer Source

You can do it with Javascript:

jQuery('.star').on("click", function(){
  var rating = jQuery(this).attr('title');
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download