Set CSS property in Javascript? -


i've created following...

var menu = document.createelement('select'); 

how set css attributes e.g width: 100px?

use element.style:

var element = document.createelement('select'); element.style.width = "100px"; 

Comments

Popular posts from this blog

python - Why doesn't list have safe "get" method like dictionary? -

razor - Is this a bug in WebMatrix PageData? -

sql server - Stored procedure -