Multiple validation using jquery
        Posted  
        
            by Prasenjit
        on Geeks with Blogs
        
        See other posts from Geeks with Blogs
        
            or by Prasenjit
        
        
        
        Published on Thu, 29 Apr 2010 09:44:46 GMT
        Indexed on 
            2010/04/29
            10:47 UTC
        
        
        Read the original article
        Hit count: 442
        
<script type="text/javascript">
$(document).ready(
                function() {
                    $("input[id$='btnOK']").click(function(event) {
                        $("#form1").validate({
                            rules: {
                                txtName: { required: true },
                                txtEmail: { required: true, email: true },
                                txtPostalAddress: { required: true, maxlength: 50 }
                            },
                            messages: {}, onsubmit: true
                        });
                    });
                    $("input[id$='Button1']").click(function(event) {
                        $("#form1").validate({
                            rules: {
                                txtName: { required: true }
                               
                            },
                            messages: {}, onsubmit: true
                        });
                    });
                });
            
            
    </script>
© Geeks with Blogs or respective owner