title: Add inline style using Javascript
body: <p>I'm attempting to add this code to a dynamically created div element</p>
  
  <pre><code>style = "width:330px;float:left;" 
  </code></pre>
  
  <p>The code in which creates the dynamic <code>div</code> is </p>
  
  <pre><code>var nFilter = document.createElement('div');
  nFilter.className = 'well';
  nFilter.innerHTML = '&lt;label&gt;' + sSearchStr + '&lt;/label&gt;';
  </code></pre>
  
  <p>My idea is to add the style after <code>&lt; div class="well"</code> but i don't know how i'd do it. </p>