This commit is contained in:
Ilya Kantor 2017-02-28 12:54:48 +03:00
parent 4272b7bb13
commit 508969c13f
168 changed files with 340 additions and 10 deletions

View file

@ -0,0 +1,18 @@
importance: 5
---
# Select all diagonal cells
Write the code to paint all diagonal table cells in red.
You'll need to get all diagonal `<td>` from the `<table>` and paint them using the code:
```js
// td should be the reference to the table cell
td.style.backgroundColor = 'red';
```
The result should be:
[iframe src="solution" height=180]