Question: Need Js code. highglight row or coloumn when header is clicked, if only cell is clicked highlight only cell. Given HTML AND CSS Lab 4
Need Js code. highglight row or coloumn when header is clicked, if only cell is clicked highlight only cell.
Given HTML AND CSS
| Student ID | Asmt 1 | Asmt 2 | Asmt 3 |
|---|---|---|---|
| 100000000 | 4.5 | 3.75 | 3.4 |
| 100000001 | 4.25 | 4.12 | 4.25 |
| 100000002 | 5.0 | 4.75 | 4.5 |
CSS
table { width: 600px; border-collapse: collapse; } td,th { border: 1px solid black; } th { background-color: darkBlue; color: white; } .selected { background-color: lightBlue; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
