Cakephp form validation using plugin -


i using jquery in cakephp forms. want add validation using way have added plugin. putting required on selected input element automatic validates it. no matter if add plugin or not. have included js helper..

public $helpers = array('html', 'form', 'js'=>'jquery', 'text'); 

like this. want stop traditional way follows auto validation. , put validation according requirement. know cakephp 1.x version follows same way want. changes have been made in cakephp 2.x version autovalidation ? how can stop ?

html5 form validation

depending on browser you're using, validation-messages see part of html5 validation performed browser. recent versions of chrome automatically perform form validation input elements have required attribute.

you can disable html5 validation adding novalidate attribute <form> tag.

see question more information:

disable validation of html5 form elements

note

although validating jquery can nice addition (from user-interface perspective), should never rely on validation in browser alone. sure perform proper server-side validation. in cakephp done in models, see data validation


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -