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

silverlight - Applying a style to ItemContainerStyle in C# -

c# - NullReferenceException in MySqlClient.NativeDriver -

php - Updating recent updates - Problem in procedure - Any other approach? -