form_dropdown helper --> disabled option |
Hello,
I can't mark specific options as disabled because no way to do it. Code: <option value="1" disabled> ddddd</option> I tried to add it in options array by add the disabled attribute beside the value eg. : PHP Code: $options = array( 'small" disabled' => ''small shirt"); Also i tried : PHP Code: $options = array( 'small" disabled = "disabled' => ''small shirt"); But the problem with html_entities it converts the double quote to the entity : "e form_dropdown([$name = ''[, $options = array()[, $selected = array()[, $extra = '']]]]) I'm looking forward to something like that: form_dropdown([$name = ''[, $options = array()[, $selected = array()[, $extra = '', $disabled_options = array()]]]]]) If there is an extra option called $disabled_options = array() it would be great. |
Messages In This Thread |
form_dropdown helper --> disabled option - by Islam Sharaf - 02-13-2016, 02:48 AM
RE: form_dropdown helper --> disabled option - by Wouter60 - 02-13-2016, 01:49 PM
RE: form_dropdown helper --> disabled option - by moh.elogail - 08-27-2017, 08:42 AM
|