title: Changing CSS style using jquery
body: <p>I'm trying to modify the width of a div. What am I doing wrong?</p>
  
  <pre><code>$('#foo')
  
  [&lt;div class=​"bar" id=​"foo" style=​"width:​ 40%"&gt;​&lt;/div&gt;​]
  
  $('#foo').css('style','width:50%')
  
  [&lt;div class=​"bar" id=​"foo" style=​"width:​ 40%"&gt;​&lt;/div&gt;​]
  </code></pre>