eddysilvamendes / jquery-star-rating-plugin

Automatically exported from code.google.com/p/jquery-star-rating-plugin
0 stars 0 forks source link

# of stars to be checked #91

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I want to be able to do something like this during the page load:

        $('.hover-star').rating({
            //disables the cancel button that comes with it

----------> selected : 3,

            readOnly: true,
            required: true,
            focus: function (value, link) {
                // 'this' is the hidden form element holding the current value
                // 'value' is the value selected
                // 'element' points to the link element that received the click.
                var tip = $('#hover-test');
                tip[0].data = tip[0].data || tip.html();
                tip.html(link.title || 'value: ' + value);
            }
        });
----------------

Instead of doing this:
<input class="hover-star" type="radio" name="test-3B-rating-1" value="3" 
title="OK" checked="checked" />

What version of the plugin/jQuery are you using?
PLUGIN VERSION:3.13
JQUERY VERSION:1.6

On what browser(s) or operating system?
BROWSER(S):Chrome

Thank you

Original issue reported on code.google.com by dfma...@gmail.com on 30 Oct 2011 at 4:31

GoogleCodeExporter commented 8 years ago

Original comment by diego.a...@gmail.com on 23 Feb 2013 at 5:12