I used jquery validate plugin(plugin 
page<http://docs.jquery.com/Plugins/Validation#Isn.27t_that_nice_and_easy.3F>) 
in my jqm project.I included the plugin file and set validate on pageshow. 
Here is my script.js file:
Copy code

   1. 
   
   $("body").delegate("div[data-role*='page']", "pageshow", function(){
   $("#home").validate();
   });
   
   
I included this file in my layout:
Copy code

   1. 
   
   script(type='text/javascript', src='/javascripts/jquery.validate.min.js')
   
       script(type='text/javascript', src='/javascripts/script.js') 

I added the classes to my inputs
Copy code

   1. 
   
   
input.input.required.email(id='email',type='text',value='',placeholder='[email protected]',name='email')
   
   
but it doesn't work. Is there anything I'm missing?

Thanks,

Feras

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to