Changing CSS style using jquery
css, jquery, width
Solution
I think it should be
$('#foo').css('width','50%')
Problem
I'm trying to modify the width of a div. What am I doing wrong? ``` $('#foo') [<div class="bar" id="foo" style="width: 40%"></div>] $('#foo').css('style','width:50%') [<div class="bar" id="foo" style="width: 40%"></div>] ```