Reputation: 15950
I need to change height and width of a <div> using jQuery
I tried following code
jQuery('#chart_popup').css('height','600px');
jQuery('#chart_popup').css('width','450px');
I need this to be done in one statement, any suggestion?
Thanks.
Upvotes: 1
Views: 252
Reputation: 3746
jQuery('#chart_popup').css( {width : '30px', height : '10px'} )
Upvotes: 3
Reputation: 250922
You can do it in one hit like this...
jQuery('#chart_popup').css({height: "600px", width: "450px"});
Upvotes: 2