title: grails g:select tag
body: <p>I am using a g:select tag like this:</p>
  
  <pre><code>&lt;td&gt;&lt;g:select name="newCity"
          id="${'newCity_' +cityData.uid}"
          from="${cityData.name}"
          value="${cityData.someValue}"
          noSelection="${['null':'Select City...']}" class="newCity" /&gt;
  &lt;/td&gt;
  </code></pre>
  
  <p>which renders the following HTML:</p>
  
  <pre><code>&lt;td&gt;
  &lt;select name="newCity" id="newCity_abc" class="newCity" &gt;
  &lt;option value="null"&gt;Select City...&lt;/option&gt;
  &lt;option value="A" &gt;A&lt;/option&gt;
  &lt;option value="B" &gt;B&lt;/option&gt;
  &lt;option value="C" &gt;C-&lt;/option&gt;
  &lt;option value="D" &gt;D&lt;/option&gt;
  &lt;/select&gt;
  &lt;/td&gt; 
  </code></pre>
  
  <p>However, I want my HTML to look like this; with class inserted since I am doing some javascript validation:</p>
  
  <pre><code>&lt;td&gt;
  &lt;select name="newCity" id="newCity_abc" class="newCity" &gt;
  &lt;option value="null"&gt;Select City...&lt;/option&gt;
  &lt;option value="A" class="populated" &gt;A&lt;/option&gt;
  &lt;option value="B" class="notpopulated" &gt;B&lt;/option&gt;
  &lt;option value="C" class="populated" &gt;C&lt;/option&gt;
  &lt;option value="D" class="notpopulated" &gt;D&lt;/option&gt;
  &lt;/select&gt;
  &lt;/td&gt;
  </code></pre>
  
  <p>Is this possible?</p>
  
  <p>Do I need to create a custom tag library to acheive this? </p>
  
  <p>Any help will be appreciated, Thanks!</p>