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

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -