Hi Lee, I found that uncommenting and setting the option 'required' to true on line 332 did just this. Of course, remember to add in the required comma at the end of line 328 to delimit the array options correctly.
Thanks Chris On Jun 24, 12:13 pm, leefw <lee.francis.wilhelm...@gmail.com> wrote: > Hi > > Right to the point: > > I don't want to use the cancel button functionality of the ratings > plugin (version 3.12) so I don't want it showing in front of the > stars. I was expecting to find a configuration setting for this, but > didn't (did I miss it)? I added a line [control.cancel.hide()] to the > draw() function in the source code on line 256 which did the trick, > but I was wondering if there is a better way to do this (preferably > through configuration)? My source code now looks like this: > > 251 .... > 252 else > 253 $(control.inputs).removeAttr('checked'); > 254 // Show/hide 'cancel' button > 255 control.cancel[control.readOnly || > control.required?'hide':'show'] > (); > 256 control.cancel.hide(); > 257 // Add/remove read-only classes to remove hand pointer > 258 > this.siblings()[control.readOnly?'addClass':'removeClass']('star- > rating-readonly'); > 259 }, // $.fn.rating.draw > 257 ... > > Anyone? > > Regards > Lee Francis