Thx for the response... actually I figured that out yesterday...
this is yii playground issue
http://code.google.c...ues/detail?id=2
The way I solved it was to put try catch...
try{
var abrakadabra = $(this).val();
// submit rating...
}catch(err){
// submit rating cancel...
}
This is very dirty solution... but I was not able to retrive $(this) parents or closest div or something that will make it possible to somhow figure out if it has value or not directly...
Maybe in the future I will fight with it more to make it cleaner... just not wanted to waste more time on that issue... and the try catch was the simplest way...
maybe just type of .attr("value") !== undefined could solve it, or check if it is numeric... maybe actually I will give it some more time today...