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>]
I think it should be
$('#foo').css('width','50%')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With