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

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -