I’m using this plugin http://www.fyneworks.com/jquery/star-rating/#tab-Testing.
I was attempting to make a client-side validation system which figures out whether
stars have been clicked.
I was wondering how you can do it.
In my javascript file, I have
$('#star1').click(function (){
document.getElementById('star1').checked=true;
return false;
});
I’m using radio button typed stars and have html code like this,
<input id="star1" name="star1" type="radio" class="star" value="1"/>
<input id="star1" name="star1" type="radio" class="star" value="2"/>
<input id="star1" name="star1" type="radio" class="star" value="3"/>
<input id="star1" name="star1" type="radio" class="star" value="4"/>
<input id="star1" name="star1" type="radio" class="star" value="5"/>
But this doesn’t seem to work.
Working demo http://jsfiddle.net/2xTwb/
Hope it fit your cause
:)scripts
code