CodeIgniter Forums
Javascript validation and getting value of it - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Javascript validation and getting value of it (/showthread.php?tid=31171)



Javascript validation and getting value of it - El Forum - 06-09-2010

[eluser]gmahesha[/eluser]
Hi.. i have problem in validation of a check boxes using javascript in CI.
After submitting the form, in the validation function if i write this statement alert(document.form_name.checkbox_name.length); it will show undefined.

I think it works in without CI. but here, in CI i am getting problem.. So, anyone know how to validate the check boxes using javascript( not PHP) in CI.... plz help me

Thanks in advance.


Javascript validation and getting value of it - El Forum - 06-09-2010

[eluser]Flemming[/eluser]
try jquery validation!

http://docs.jquery.com/Plugins/Validation

it is well documented and lots of examples on the web. Makes validation easy!