title: How can i get a dropdownbox working with a css class?
body: <p>I have a <code>SelectList</code> in the controller that its value passed to the view by <code>ViewData</code> to the view as below:</p>
  
  <pre><code>List&lt;string&gt; available = new List&lt;string&gt;();
              available.AddRange(product.AvailableSizes.Split(',').ToList());
              ViewData["availablesize"] = new SelectList(available);
  </code></pre>
  
  <p>in the view i have a drop down box which display the values of the variable <code>availablesize</code> as below:</p>
  
  <pre><code>@Html.DropDownList("availablesize")
  </code></pre>
  
  <p>for some reasons i need to display this drop down box in the following format but unable to handle this issue any suggestion?</p>
  
  <pre><code>&lt;div class="product-page-options"&gt;
  &lt;div class="pull-left"&gt;
  &lt;label class="control-label"&gt;Size:&lt;/label&gt;
  &lt;select class="form-control input-sm"&gt;
   &lt;option&gt;L&lt;/option&gt;
   &lt;option&gt;M&lt;/option&gt;
   &lt;option&gt;XL&lt;/option&gt;
  &lt;/select&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>