Jquery error on rating system
<p>Hi I am trying to follow a rating system tutorial to add a rating system to my website but there is an issue with the jquery, and was hoping somebody may be able to hightlight the error as i am fairly new with jquery, anyway any help would be appreciated, thanks.</p>

<pre><code>$('.star').click(function (){
var id = $(this).parent().attr('id').split('rating')[1];
var vote = $(this).index() 1;

$.ajax({
type: "POST",
url:"save-vote.php",
data: "id=" id "&amp;vote=" vote
});

})
</code></pre>

<p>it is showing that the error exists on this line:</p>

<pre><code>var vote = $(this).index() 1;
</code></pre>

<p>Thanks</p>
