title: Rating plugin pass value to AJAX
body: <p>I'm trying to get value to two hidden fields in AJAX which somehow is not happening. I am using <a href="http://www.wbotelhos.com/raty/" rel="nofollow">http://www.wbotelhos.com/raty/</a> rating plugin . </p>
  
  <p>The value is not getting in AJAX</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;head&gt;
     &lt;title&gt;&lt;/title&gt;
     &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;
     &lt;script type="text/javascript" src="js/jquery.min.js"&gt;&lt;/script&gt;
     &lt;script type="text/javascript" src="js/jquery.raty.min.js"&gt;&lt;/script&gt;
  
  &lt;/head&gt;
  &lt;?php
  $id=1;
  $msg_id=192;
  ?&gt;
  &lt;body&gt;
      &lt;div id="click&lt;?php echo $msg_id ;?&gt;" onclick="rate('$id','$msg_id')"&gt;
          &lt;input type="hidden" id="uniqueRateID" name="uniqueRateID" value="&lt;?php echo                  $id; ?&gt;" /&gt;
          &lt;input type="hidden" name="ratedJS" value="&lt;?php echo $msg_id ;?&gt;" /&gt;
      &lt;/div&gt;
      &lt;script type="text/javascript"&gt;
      $('#click&lt;?php echo $msg_id ;?&gt;').raty({
  
      });
  
      function rate(a,b,c)
      {
          alert(a+'jkij'+b+'dfdf'+c+'dddd');
          var xmlhttp;
          if (window.XMLHttpRequest)
          {// code for IE7+, Firefox, Chrome, Opera, Safari
              xmlhttp=new XMLHttpRequest();
          }
          else
          {// code for IE6, IE5
              xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
          }
          xmlhttp.onreadystatechange = function()
          {
              if (xmlhttp.readyState==4 )
              { 
                  var accdata=xmlhttp.responseText;
              alert(accdata);
                  document.getElementById('request').value="Request Sent";
              document.getElementById('request').disabled=true;
              }
          }
         xmlhttp.open("GET","modules/manage friends/update_friend.php?ab="+a+"&amp;&amp;bc="+b+"&amp;&amp;             cd="+c,true);
         xmlhttp.send();
      }
      &lt;/script&gt;
  </code></pre>