Hi
I use CStarRating widget and I want to display the selected value using the callback setting
<?php $this->widget('CStarRating',array('name'=>'rating', 'callback'=>'test')); ?>
<script>
function test(){
alert ($(this).val());
}
</script>
How to do the same thing when user click on cancel button ?
May I can use the bellow code but I seek for a more robust way
$('.rating-cancel a').click(function(){
alert('cancel click');
});
Thanks