0

I'm bulding a star rating system with javascript. I'm trying to access a class name within a php page. Ideally it should cause the star to change colour on mouseover, but nothing is happening when I do.
Javascript:
$('.star').mouseover(function (){
var star = $(this).index() 1;
$(this)....