Welcome Guest, Not a member yet? Register   Sign In
form_dropdown helper --> disabled option
#1

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 : &quote


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.
Reply


Messages In This Thread
form_dropdown helper --> disabled option - by Islam Sharaf - 02-13-2016, 02:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB