html - setting width of div jquery -
i'm trying set width of div using jquery.
this how i'm trying set size of div
$('#page').css("width",data[0]['imagewidth']);
and div i'm trying set
<div id="page"> </div>
any appreciated
in css lengths require unit, in case pixel (px
):
$('#page').css("width",data[0]['imagewidth'] + "px");
Comments
Post a Comment