How is use of jQuery plugin validation to CodeIgniter? |
[eluser]SaSa[/eluser]
Hello all How is use of jQuery plugin validation to CodeIgniter? Link jQuery plugin validation => http://bassistance.de/jquery-plugins/jqu...alidation/
[eluser]SPeed_FANat1c[/eluser]
There is nothing special. I used it with CI. Just include it in your view file and use it Don't forget to validate data with php when submit.
[eluser]SaSa[/eluser]
are you confident that this method works correctly? Because I do not work
[eluser]SPeed_FANat1c[/eluser]
Yeah, for me it worked ok. What exactly does not work for you?
[eluser]SaSa[/eluser]
I use of demo marketo Between the head tags put the following: Code: <?=js_asset('jquery.validate.js');?> Code: class = "required defaultInvalid url" Code: class = "required"
[eluser]SPeed_FANat1c[/eluser]
Code: <?=js_asset('jquery.validate.js');?> you have to add validation rules and submit handler there. For example: Code: <?=js_asset('jquery.validate.js');?> Edit: and you need script tags.
[eluser]SaSa[/eluser]
thank I did not notice you mean? my form: Code: <?= form_open('links/seeror'); ?>
[eluser]SPeed_FANat1c[/eluser]
I don't understand what do you want to ask. In your form one of the fields name is 'title' and it is required. So you can make a rule for it this way: Code: title: {
[eluser]SaSa[/eluser]
thank I do this But it does not work Code: <head>
|
Welcome Guest, Not a member yet? Register Sign In |