I'm trying to figure out why the disabled attribute is not getting applied to my dropdown. As far as I know I'm applied the correct attributes to the form_dropdown function.
<?php if (in_array('No Wrestlers In Database', $allies)) {
$attributes = array('disabled' => 'disabled');
echo form_dropdown( 'ally1', $allies, $attributes);
}
else {
echo form_dropdown( 'ally1', $allies, $alliesList->ally1ID);
} ?>
Rendered HTML:
<select name="ally1">
<option value="0">No Wrestlers In Database</option>
</select>