SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    May 2011
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Sitepoint jQuery Star Rating doesn't work???

    Hi.

    I'm trying to implement the star rating widget from the jQuery Novice to Ninja book - everything works fine visually but the underlying radio buttons are not being updated with a 'clicked' setting when the stars are selected.

    This is even the case in the demo files that came with the book!!!!

    Has anyone got a link to a properly working implementation?

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)
    I believe that if you set the link text to the option value, instead of the rating, that that will fix the problem.

    Code:
    var $item = $('a href="#"></a>')
        ...
        .text(ratingthis.value);
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  3. #3
    SitePoint Member
    Join Date
    May 2011
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thankyou paul, I'll give it a try


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •