title: URL in AJAX POST
body: <p>I want to post these variables via AJAX:</p>
  
  <pre><code>       &lt;div class="vIn" id="star"&gt;
          &lt;div id="inner"&gt;
           &lt;span id="1" class="disabled"&gt;&lt;/span&gt;
           &lt;span id="2" class="disabled"&gt;&lt;/span&gt;
           &lt;span id="3" class="disabled"&gt;&lt;/span&gt;
           &lt;span id="4" class="disabled"&gt;&lt;/span&gt;
           &lt;span id="5" class="disabled"&gt;&lt;/span&gt;
           &lt;input type="hidden" id="&lt;?php echo $_GET['cID']?&gt;" /&gt;
          &lt;/div&gt;
        &lt;/div&gt;
  </code></pre>
  
  <p>With this script:</p>
  
  <pre><code>$(document).ready(function(){
   $('#inner span').click(function(){
       $(this).prevAll().andSelf().addClass('enabled');  
       var a = $(this).attr("id");
       var cID = $("#inner input").attr("id");
       $.ajax({
             type: "POST",
             url: "ajax/rating.php",
             data: "value=+a+&amp;cID=+cID+",
             success: function(msg){
               alert(data);
             }
           });
       });});
  </code></pre>
  
  <p>On the click event, there is no alert. Am I using the right data in $.ajax?
  Thanks in advance.</p>