Jquery script crashes
<p>I have the following code</p>

<pre><code>function manChecks() {
    if ($("#__CS").length &gt; 0) {
        var cols = $("#__CS").val();
        for (var i = 1; i &lt;= 9; i++) {
            colManage(i, cols.indexOf('|' + i) != -1);
        }
    }
}
</code></pre>

<p>So what happens if that code is less than 0 it shouldn't run - but it seems to be causing an issue.</p>

<p>Have a written this correctly or have I missed something.</p>
