What's a MVC application?

Have you checked that the id "main" exists on the dynamic page?

Jörn

On Fri, Jul 10, 2009 at 9:14 PM, Jarrod<johnson.jar...@gmail.com> wrote:
>
> 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