Javascript - Change Selected HTML Table Row Background Color
How To Change HTML Table Selected Row Background Color Using JavaScript
In This Javascript Tutorial we will See How To Set Background Color To The Selected HTML Table Row On Row Click In JS And Netbeans Editor .
Project Source Code:
tr{cursor: pointer; transition: all .25s ease-in-out}
.selected{background-color: red; font-weight: bold; color: #fff;}
First Name | Last Name | Age |
---|---|---|
A1 | B1 | C1 |
A2 | B2 | C2 |
A3 | B3 | C3 |
A4 | B4 | C4 |
A5 | B5 | C5 |
A6 | B6 | C6 |
A7 | B7 | C7 |
A8 | B8 | C8 |
Posting Komentar untuk "Javascript - Change Selected HTML Table Row Background Color"