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++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -