var id = "<?php echo $val->id; ?>";
var myRadio = $('input[name=<?php echo "mala".$val->id; ?>]').val();
if (myRadio.val.length > 0){
$("#anketa").load('http://www.svastara.rs/anketa/anketa_m1_data',
{ answer: myRadio, id: id });
}
});
Why this if (myRadio.val.length > 0) returns it looks like false, when i am sure that there is something in the string. If its not a good way, how to check that the string is empty or not?
valofval()?