My jQuery code is:
$(document).ready(function(){
$(\'#StudentRegisterForm\').validate({
rules: {
email: {
required:true,
The first one is better to use, because this will maintain cake this->data structure
, but second one is not. This is to remind that, when you will use the data[modelname][fieldname]
give the class name in the input aray like:
input('email',array('type'=>'text','class' => array('required','email'),'error'=>false,'label'=>false,'div'=>false)); ?>