Jquery validation on select box not working
<p>I am using jQuery validation plugin for client side validation, but my validations do not work only on select box. I googled it, but nothing works.</p>

<p>HTML</p>

<pre><code>&lt;select id="select" class="required" &gt;
&lt;option value="-1"&gt;Choose&lt;/option&gt;
&lt;option value="child"&gt;test2&lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p>jQuery code</p>

<pre><code>$("#formid").validate({
            select:{
                required: function(element) {
                    if( $("#select").val() =='-1'){
                        return false;
                    }else{
                        return true;
                    }

                }
            }
        }); 
</code></pre>

<p>but it is not working. Please suggest a good solution.</p>
