v2.2: Problem disabling cancel button
April 11, 2008 - 5:27pm — DragonI
| Project: | Star Rating Plugin |
| Version: | 2.0.0 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Hi,
I'm having a problem disabling the cancel button. Maybe it's just me ;)
code says: //required: false, // disables the 'cancel' button so user can only select one of the specified values
Here's what I tried:
<form id="form1">
<input class="star {required:false}" type="radio" name="test-1-rating-2" value="1" title="Worst"/>
<input class="star {required:false}" type="radio" name="test-1-rating-2" value="2" title="Bad"/>
<input class="star {required:false}" type="radio" name="test-1-rating-2" value="3" title="Good"/>
<input class="star {required:false}" type="radio" name="test-1-rating-2" value="4" title="Excellent"/>
</form>Also tried:
$(function(){ $
('input[@type=radio].star').rating({required:false}); });Thanks!

Comments
#1
try this
$(function(){ $('input[@type=radio].star').rating({required:true}); });