Get hidden form values jquery star rating
<p>I have a question regarding the <a href="http://www.fyneworks.com/jquery/star-rating/" rel="nofollow"><strong>jQuery Star-Rating plugin</strong></a>.<br>
I have many items to rate on one page, so I have added some hidden fields to each rating form. </p>

<p>The problem is I cannot get these values posted.</p>

<p>Here's an example:</p>

<pre><code>&lt;form method="post" id="rate" action="rate.php"&gt;
  &lt;input name="rating" type="radio" class="auto-submit-star {split:4}" value="9.75" /&gt;
  &lt;input name="rating" type="radio" class="auto-submit-star {split:4}" value="10.00" /&gt;
  &lt;input type="hidden" id="post_id" value="1" /&gt;
  &lt;input type="hidden" id="ip" value="&lt;?php echo $_SERVER['REMOTE_ADDR']; ?&gt;"/&gt;
&lt;/form&gt;
</code></pre>

<p>The plugin uses a callback like this:</p>

<pre><code>&lt;script type="text/javascript"&gt;
  $(function() {
    $('.auto-submit-star').rating({
      callback: function(value, link) {    
        alert("The value selected was '" + value + "'\n\nWith this callback function I can automatically submit the form with this code:\nthis.form.submit();");
      }
    });
  });
&lt;/script&gt;
</code></pre>

<p>When a star is clicked I get the prompted message, that is all good, except I can't figure out how to also get the <code>post_id</code> and <code>ip</code> values.<br>
I have tried :</p>

<pre><code>var values = $('#rate').serialize();
alert (values);
</code></pre>

<p>However it always returns <code>Object Object</code>, it looks like only the number gets send to the function. </p>

<p>Is there a way to also send the other 2 fields?</p>
