Welcome Guest, Not a member yet? Register   Sign In
Combination of form_dropdown() and set_select() possible?
#4

I've found a solution by making my own form_dropdown() function in MY_Form_helper.php.
PHP Code:
form_dropdown([$name ''[, $options = array()[, $selected = array()[, $extra ''[,$unselectable = array()]]]]]) 

The $unselectable array contains the options that are marked as "disabled". I avoided $disabled here, because the disabled attribute must be available for marking the entire dropdown-list as "disabled".
Reply


Messages In This Thread
RE: Combination of form_dropdown() and set_select() possible? - by Wouter60 - 05-16-2016, 02:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB