[eluser]chzigkol[/eluser]
Hi,
I use jQuery and ajax calls to fill/edit a form within a view.
I have several block of divs which update specific attributes in my DB.
With ajax calls I do proceed to some actions without refreshing my page (hey this is Ajax
after all)
I was wondering if CI can provide me with a validation on each individual block of divs. I'm not talking about validating the whole form. I know how to do that, i suppose.
For instance i have a div that has two text fields and one "Done" button. When I clicked that button a specific function of one of my controllers is called via ajax call. But, what about validation on these two text fields?
Hmmmm....What about loading the validation library in the controller function?
Well I've tried this but whatever I've done, the following if statement
$this->form_validation->run() == FALSE
was always TRUE. Fail or something that I haven't noticed?
Thank you in advance.
Christos