Code: Select all
$form->addElement( 'select', 'state_id', 'State:', statesArray() );What I'd like to do is prepend this array with two options that are disabled, so that by default the select menu says something like "Please select a state" followed by a dash, both of which are disabled. If I weren't using QuickForm, the select would have the following as the first two options:
Code: Select all
<option value="" disabled="disabled">Select a State</option>
<option value="" disabled="disabled">-</option>Is there a way to do this with QuickForm?
Thanks,
Chuck