CodeIgniter Forums

Full Version: Disabled dropdown
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

Hi, here is my problem.
I have a custom function i've created for render an html dropdown:

function form_dropdown_action($action, $name, $dato, $array_info, $data) {
   case 'clean':
    $value = '';
   case 'edit':
    $value = $dato;
   case 'repopulate':
    $value = set_value($name);
   case 'disable':
    $value = $dato;
    $array_info['disabled'] = 'disabled';
     return form_dropdown($array_info, $data, $value);

It works fine except by the 'disable' status.
When the $action is 'disable', it would disable the dropdown. But it doesn't work.

I hope you can help me.