I have an MVC application and I am trying to do some validation but
the Validate doesn't seem to fire. I can get it working in a basic
html page but for some reason it is not working in my aspx page and I
am not sure why. I have all the js files included that I need and the
CSS classes defined exactly as they are in the basic example in the
jQuery documentation. Here is my code:

<script>
        $(document).ready(function() {
            //alert();
            $("#main").validate({
                rules: {
                    // simple rule, converted to {required:true}
                    ssn: {
                        required: true
                    }
                }
            });
        });
    </script>

<input id="ssn" class="required" name="ssn" />

Reply via email to