![]() |
validation withtout form..can? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: validation withtout form..can? (/showthread.php?tid=25125) |
validation withtout form..can? - El Forum - 12-01-2009 [eluser]tnathos[/eluser] hi, in my app i use ajax-jquery for send the data to the db.. in the function the jquery i use a javascripts for validate the fields.. for example empty, password etc.. i am interest in use the validation what CI have.. but whit i use ajax.. i dont use <form>.. so its possible use ajax whit validation CI whitout form? thanks. validation withtout form..can? - El Forum - 12-01-2009 [eluser]Thorpe Obazee[/eluser] The only difference you're going to do is change the event listener from your_form.submit() to your_button_or_whatever.click(). Code: <script type="text/javascript"> validation withtout form..can? - El Forum - 12-01-2009 [eluser]tnathos[/eluser] thanks! |