• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
callback function not working

I have one combobox which is having select as default value and I have called one callback function for checking whether any value in the combo is selected or not. Here is the callback function which I have made.

function universitycombo_check($str)
            $this->validation->set_message('universitycombo_check', 'Please select any university');
            return FALSE;
            return TRUE;

Now this function works only when I doesn't fill up any other form field than this combo. As soon as I fill up all the fields this validation doesn't works. I got stuck at this point. Please help me. Thank you.

This is going to sound like an obvious question. Are you sure the value of the select box is coming out 0 every single time?

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.