javascript - How to set the width of the image in the following case? -


i have image, want set width in javascript.

it written in following format, how set width?

create("td",{colspan:"4",innerhtml:"<img src='"  + imagepath +  "images/categorieslogos.jpg'> style= 'width:900px'"},"space1"); 

here imgepath variable. picks image, how assign width?

tried use style way shown in code.

the inline style tag outside of img tag.

try this:

create("td",{colspan:"4",innerhtml:"<img src='"  + imagepath +  "images/categorieslogos.jpg' style= 'width:900px'>"},"space1"); 

Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -