title: jquery star rating plugin help needed
body: <p>I'm adding the star rating plugin from www.fyneworks.com/jquery/star-rating/ and I'm finding the documentation rather obscure.  It may just be that I'm looking in the wrong places, which wouldn't be that unusual for me.  </p>
  
  <p>We are on an asp.net MVC application, and I would like to add the star rating object in 3 different pages.  On the "create rating" page I would like to implement a 5-star rating, but I would like to hide or eliminate the "delete" icon.  In other words, when I give a user the opportunity to rate something I'd like to default it to 3-stars and only allow them to vote 1 - 5.  I don't want them to be able to submit the rating with zero.  The concept behind radiobuttons would handle this except the "delete" choice overrides this.<br>
  Here is the code I currently have.</p>
  
  <pre><code>        &lt;td&gt;
              &lt;strong&gt;
                  &lt;label for="Rating"&gt;
                      Rating:&lt;/label&gt;&lt;/strong&gt;
          &lt;/td&gt;
          &lt;td valign="top" width="180"&gt;
              &lt;input name="rating" type="radio" class="star" value="1" /&gt;
              &lt;input name="rating" type="radio" class="star" value="2" /&gt;
              &lt;input name="rating" type="radio" class="star" value="3" checked="checked" /&gt;
              &lt;input name="rating" type="radio" class="star" value="4" /&gt;
              &lt;input name="rating" type="radio" class="star" value="5" /&gt;
          &lt;/td&gt;
  </code></pre>
  
  <p>This is my first post so I hope this is within protocol, I also have another question about this same jquery and I don't know if I should create a separate question or add it here.  For now I will add it here, and if this is wrong, let me know and I'll create it as a separate question.  </p>
  
  <p>On another page of the application I want to display multiple reviews for each entity along with the rating.  I can't see how this should be done.  I have a foreach loop that displays each review with the star rating, but my loop puts all the stars for all of the ratings at the top of the review list. In other words, if there are 6 ratings for a specific entity, 30 stars are displayed (6 x 5) followed by 6 summary lines.  I'm assuming that I have to somehow dynamically change the name of the input name within my loop, to get the different objects associated with their summary lines.  Here is the code for that:</p>
  
  <pre><code>&lt;table&gt;
  &lt;% foreach (var review in Model.Reviews)
     { %&gt;
         &lt;tr&gt;
          &lt;% if (!Model.IsSingleBusiness)
             { %&gt;
                 &lt;td&gt; 
                     &lt;%= Html.ActionLink(Html.Encode(review.Title), "Details", new { id = review.ReviewId, eId = Model.Entity.EntityId })%&gt;   
                 &lt;/td&gt;
           &lt;% } %&gt;
             &lt;td valign="top"&gt;
                 &lt;%= Html.ActionLink("Details", "Details", new { id = review.ReviewId, eId = Model.Entity.EntityId })%&gt;
                 &lt;br /&gt;Rating: &lt;%= Html.Encode(review.Rating)%&gt;
                      &lt;input name="rating" type="radio" class="star" disabled="disabled" /&gt;
                      &lt;input name="rating" type="radio" class="star" disabled="disabled" /&gt;
                      &lt;input name="rating" type="radio" class="star" disabled="disabled" /&gt;
                      &lt;input name="rating" type="radio" class="star" disabled="disabled" /&gt;
                      &lt;input name="rating" type="radio" class="star" disabled="disabled" /&gt;
                 &lt;br /&gt;By: &lt;%= Html.Encode(review.Reviewer.FullName)%&gt;
             &lt;/td&gt;
             &lt;td valign="top"&gt;
                 &lt;%= Html.ActionLink(Html.Encode(review.Title), "Details", new { id = review.ReviewId, eId = Model.Entity.EntityId })%&gt;
             &lt;/td&gt;
         &lt;/tr&gt;
  &lt;% } %&gt;
  
  &lt;/table&gt;
  </code></pre>
  
  <p>Thanks in advance for the help. </p>
  
  <p>Bob</p>