jQuery Raty: how to disable one rating box in a group of rating boxes? -


i'm using jquery raty plugin nice , rather complete plugin create ratings (a row clickable stars in itunes).

in project i'm working on have number of elements (images) contain rating box. on html level these rating boxes have same classname raty plugin can activate them in 1 call: $('.rating').raty

this call makes possible disable (make 'readonly') these rating boxes, command disables rating boxes. activate rating boxes using aforementioned command, , disable 1 or more of rating boxes inside group.

anyone know if possible?

if want adjust settings while code running, can this:

var iseven = false;  $('.raty').each(function(i) {      iseven = (++i % 2 == 0);      $(this).raty({         readonly: iseven,         start: (iseven) ? 3 : 0      });  }); 

if have code , want change later, can this:

$(function() {     var targetid = $('.raty').attr('id');      $.fn.raty.start(5, '#' + targetid); }); 

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -