javascript - How to add class to dynamically generated text box in DOM? -


i created textbox using javascript.

how assign class textbox in javascript?

assuming have reference text-box node, can assign css class setting classname property on node, like:

mytextbox.classname = "someclass"; 

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -