title: How can I use QuickForm to add disabled select options?
body: <p>I have code using QuickForm that creates a select widget with the following:</p>
  
  <pre><code>$form-&gt;addElement( 'select', 'state_id', 'State:', statesArray() );
  </code></pre>
  
  <p><code>statesArray()</code> queries the database to get the states available and returns an associative array with the ids linked to the state names. I'm using a similar technique throughout the solution.</p>
  
  <p>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:</p>
  
  <pre><code>  &lt;option value="" disabled="disabled"&gt;Select a State&lt;/option&gt;
    &lt;option value="" disabled="disabled"&gt;-&lt;/option&gt;
  </code></pre>
  
  <p>Both options are disabled, and if the user leaves the option on the first value, the select widget submits an empty value which is made invalid by the form checking code.</p>
  
  <p>Is there a way to do this with QuickForm?</p>
  
  <p>Thanks,
  Chuck</p>