URL in ajax post
<p>I want to post this 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>I have used 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>With click event, there is no any alert. Am I use right data in $.ajax?
Thanks in advance.</p>
