title: How to assign disabled attribute to dropdown menu in codeigniter?
body: <p>I am using the form helper from codeigniter to create a dropdown menu. I have looked at <a href="http://codeigniter.com/user_guide/helpers/form_helper.html" rel="nofollow">http://codeigniter.com/user_guide/helpers/form_helper.html</a> but it doesn't specify how to assign attributes to drop-down menu items. I want to the disabled option to the first one.</p>
  
  <p>As it stands now im using:</p>
  
  <pre><code>&lt;?php
    $countries = array(
    'CA' =&gt; 'Canada',
    'MX' =&gt; 'Mexico',
    'US' =&gt; 'United States'
    );
  ?&gt;
  &lt;?php echo form_dropdown('country',$countries,$user-&gt;CountryCode,'class="form-control"'); ?&gt;
  </code></pre>
  
  <p>How can I add a first option that says choose a country that is disabled so the user cant pick it once they open the dropdown? I know I could just add a blank one to the list but then its a pick-able option.</p>
  
  <p>Thanks for the help!</p>