jQuery form validation not working in CakePHP 2.8.5 -
actually html form contains textboxes name like, example name="data[user][username]" in cakephp 2.8.5. how can write jquery form validation code form fields. why because when use validation have use textbox field name, cannot use entire textbox name data[user][username] . my code below: <!doctype html> <html lang="en"> <head> <?php echo $this->html->css('jquery-ui.min.css'); ?> <?php echo $this->html->script('jquery.js'); ?> <?php echo $this->html->script('jquery-ui.min.js'); ?> <?php echo $this->html->script('jquery.validate.min'); ?> <script> $(function() { // setup form validation on #register-form element $("#useraddform").validate({ // specify validation rules rules: { username: "required", password: { required: true