I have a question , is it possible to add property/value to a class created dynamically?
for Ex:
var clss=document.createAttribute('class');
// here can we add property/value to a "clss " like
// clss.someMethod('width' , '100px');
// clss.someMethod('border' , '2px solid red');
// something like this...is it possible ??
div.setAttribute('class' , cls);
I know how to add inline-style , i just want to add it "clss" , is it possible? Thanking you all in advance.