Changing CSS Styles with Java Script

Changing CSS Styles with Java Script

Changing Styles of ID

				
					document.getElementById("abc").style.left="80px";
document.getElementById("abc").style.background="blue";
				
			

Changing Style of Class

				
					document.getElementsByClassName("ppp")[0].style.color = "blue";
document.getElementsByClassName("ppp")[0].style.fontFamily = "Arial";
document.getElementsByClassName("ppp")[0].style.fontSize = "larger";
				
			

Changing Style of all CSS Classes with Loop

				
					for(x=0;x<=3;x++){
 document.getElementsByClassName('abc')[x].style.color='blue';
                }
				
			

Take Your Free Live Demo Class Now

Enter Your DETAILS BELOW

To Get Complete Information or We Will Call You

We Will Send You the Course Fees Details In Below Number

Enter Your DETAILS BELOW

We Will Call Back You Shortly

Enter Your DETAILS BELOW

We Will Call Back You Shortly

Enter Your DETAILS BELOW

Enter Your DETAILS BELOW TO take

free demo class