Javascript Add Active Class To A DIV
How To Set Active Class In Javascript
In This Javascript Tutorial we will See How To Add A Class To an HTML element And Delete the class From Other Elements On Element Click using JS And Netbeans Editor .
Project Source Code:
.parent{overflow: hidden;margin-top:50px;}
.child{width:200px;height: 150px;float: left;margin-left:20px;border:1px solid #000;
text-align:center;line-height:150px;cursor: pointer;background-color:#ddd;}
.bak{ background-color: red; color: #fff; font-weight:bold; }
DIV1
DIV2
DIV3
DIV4
DIV5
OUTPUT:


Post a Comment for "Javascript Add Active Class To A DIV"