eddysilvamendes / jquery-star-rating-plugin

Automatically exported from code.google.com/p/jquery-star-rating-plugin
0 stars 0 forks source link

Using A tags #92

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi there.
actually it is not an issue, it is a suggestion with respect.
lets say I want to use A tags instead of radio. I know it is supported.
but I faced a problem in setting the default one, since a tags has no checked 
attributes.

i 've edited the code in the loop and added these few lines:
if(this.nodeName=="A"){
  if($(this).hasClass('selected')){
     control.current = star;
  }
}

if there was a solution already, please, let me know.
thanks, you have made a piece of art.

Original issue reported on code.google.com by EngAMok...@gmail.com on 26 Jan 2012 at 12:23

GoogleCodeExporter commented 8 years ago
That's a great suggestion. I'll implement it now.

Original comment by diego.a...@gmail.com on 26 Jan 2012 at 12:28

GoogleCodeExporter commented 8 years ago

Original comment by fyneworks on 26 Jan 2012 at 1:04