InterviewSolution
| 1. |
How To Change Style On An Element? |
|
Answer» Between CSS and javascript is a WEIRD symmetry. CSS STYLE rules are layed on TOP of the DOM. The CSS property names like "font-weight" are transliterated into "myElement.style.fontWeight". The class of an ELEMENT can be swapped out. For example: Between CSS and javascript is a weird symmetry. CSS style rules are layed on top of the DOM. The CSS property names like "font-weight" are transliterated into "myElement.style.fontWeight". The class of an element can be swapped out. For example: |
|