You can try the following for the click event: (sample code)
$('#click').raty({
click: function(score, evt) {
$.ajax({
type: 'POST',
url: '/SaveMyRating.php',
data: {'score':score},
success: function(data){ alert('Your rating was saved'); }
});
}
});
SaveMyRating.php should be a php script that will receive the resulting grade and save it (file or database, etc.).
source
share