jQuery startswith selector
<pre><code>function test() {
    var foo = [];
    $('#tree table').each(function(i, table) {
        foo[i] = $(table).text().trim();
    });

    var ch = 'G';

    for (j = 0; j &lt;= 12; j++) {
        if (foo[j] ^= ch) {
            alert(foo[j]);
        }
    }
}
</code></pre>

<p><code>[foo[j] ^= ch]</code>  startsWith selector isn't working in the above code. Help needed. Couldn't find any answer. Thanks in adv.</p>
