jquery validation checks not working properly
<pre><code>$(document).ready(function(){
    $(".submit").click(function(){
                if($('.disrtrict')[0].selectedIndex&lt;=0){
                    $("#error1").html("district field is empty");

                } 

                if($(".block")[0].selectedIndex&lt;=0){
                    $("#error2").html("block field is empty");  
                }


                if($(".village")[0].selectedIndex&lt;=0){
                    $("#error3").html("village field is empty");    
                }

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

<p>above is my jquery script.i am new to jquery and try to learn jquery. my problem is where i use return false.what the concept of return true and false and i use <code>if($(".block")[0].selectedIndex&lt;=0)</code>  can we use <code>if($(".block").val()==" ")</code> if any one have standard checks please provide help.thank in advance.</p>
