Hi,
I have a select form entity like this:
use \Phalcon\Forms\Element\Select;
$select = new Select('select', array(
'NULL' => '',
'a' => 'Option 1',
'b' => 'Option 2',
));
I would like to have Option 1 to be disabled if some variable is true. How can I do that? Wanted result:
<select>
<option value=""></option>
<option value="" disabled>Option 1</option>
<option value="">Option 2</option>
</select>