title: How can I insert an id or class attribute into an option of a select statement in the form of ZF2?
body: <p>Currently, I have this select code in ZF2. Works great, have no issues, BUT! I want to put an id or class attribute into one of the options. Is that possible currently in ZF2? </p>
  
  <pre><code>    $this-&gt;add(
          array(
              'name' =&gt; 'number_of_rooms',
              'type' =&gt; 'Zend\Form\Element\Select',
  
              'options' =&gt; array(
                  'label' =&gt; 'Number of Rooms',
                  'options' =&gt; array(
                      array(
                          'value' =&gt; '',
                          'label' =&gt; '- number of rooms -',
                          'disabled' =&gt; true,
                      ),
                      array(
                          'value' =&gt; 'one bedrooms,
                          'label' =&gt; '1 Bedrooms',
                      ),
                      array(
                          'value' =&gt; 'two bedrooms',
                          'label' =&gt; '2 Bedrooms',
                      ),
                      array(
                          'value' =&gt; 'three bedrooms',
                          'label' =&gt; '3 Bedrooms',
                      ),
  
                  ),
              ),
              'attributes' =&gt; array(
                  'id'    =&gt; 'number_of_rooms',
              ),
          )
      );
  </code></pre>