Setting style/css class of html elements from javascript
Style of an html element can be set in 2 ways.
Specify a css class name for the element.
Set the style inline for the element.
//Method 1:
<p class="boldText">Some text</p>
//Method 2:
<p style="font-weight:bold;">Some text</p>
Therefore using these 2 attributes we can change the style of any html element in the page. The only thing we need to do is get [...]
Read the rest of this entry >>

