[eluser]Computerzworld[/eluser]
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.
Code:
function universitycombo_check($str)
{
if($str==0)
{
$this->validation->set_message('universitycombo_check', 'Please select any university');
return FALSE;
}
else
{
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.