[jQuery] forms validation problem

2009-01-16 Thread vierda

dear all,
 I'm new with jquery and I have problem with my code for forms
validation. the error message cannot show up. I build the web site
using django. my code as per following below:

{% extends 'base_site.html' %}
{% load i18n %}

{% block breadcrumbs %}{% trans
'Home' %} › {% trans 'Update Profile' %}{% endblock %}

{% block head %}
{% block title %}{% trans "Update Profile" %}{% endblock %}




   $(document).ready(function(){
  $('.update').validate({
 rules:{
email:{
   required: true,
   email: true
}
 }
 message:{
email: "e-mail field is required"
 }
  }).addClass("error");
   });

{% endblock %}

{% block content %}
 Update My Profile 


   
  
 e-mail:
 
  
   
   

{% endblock %}

kindly advice and really appreciate for your help

best regards,
-Vierda-


[jQuery] forms validation problem

2009-01-16 Thread vierda

dear all,

I'm new with Jquery and now I want to use it for validate forms. I
build site with django.
The problem is the error message cannot show up. my code as following
below:

$(document).ready(function(){
  $('#updateForm').validate({
 rules:{
email:{
   required: true,
   email: true
}
 }
 message:{
email: "e-mail field is required"
 }
  }).addClass("error");
   });

kindly advice and thank you for your kind help

best regards,
-mila-