Geeks With Blogs
Daily dotnet {notes on codes}

<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>

Posted on Wednesday, April 28, 2010 10:44 PM asp.net | Back to top


Comments on this post: Multiple validation using jquery

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Prasenjit | Powered by: GeeksWithBlogs.net