how to set multiple style properties of a dom element in one time
I know the atomic way to set style properties of a DOM element like
Is there any way to set multiple properties in the same time? I'd like to spare some cpu time...
I assume if I use framework like JQuery to set more style props at once that call will be interpreted to the atomic way I described above...
Am I right with this guess?
Could this work?
domElmnt.setAttribute("style", "margin: 0; padding: 0;");
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread