jQuery to check empty string
<pre><code>var id = "&lt;?php echo $val-&gt;id; ?&gt;";

var myRadio = $('input[name=&lt;?php echo "mala".$val-&gt;id; ?&gt;]').val();

if (myRadio.val.length &gt; 0){
   $("#anketa").load('http://www.svastara.rs/anketa/anketa_m1_data', 
       { answer: myRadio, id: id });
   }
});
</code></pre>

<p>Why this  <code>if (myRadio.val.length &gt; 0)</code>  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?</p>
