Plugins

User login
Can't find a Plugin?

Can't find a Plugin you are looking for? Check out the jQuery Wiki page.

Are you a plugin developer? Please move your plugin over to this site.

Website Bug or Feature Request?

Found a bug on the new jQuery Plugin website? Have a feature request?

Submit it to the jQuery Plugin website issue queue to ensure it is noticed!

v2.2: Problem disabling cancel button


Project:Star Rating Plugin
Version:2.0.0
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
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}); });