Skip to content

Commit 715ed60

Browse files
Update solution.md
1 parent 63683bf commit 715ed60

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

  • 2-ui/1-document/04-searching-elements-dom/1-find-elements

2-ui/1-document/04-searching-elements-dom/1-find-elements/solution.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
There are many ways to do it.
1+
راه‌های زیادی برای آن وجود دارد.
22

3-
Here are some of them:
3+
اینجا برخی از آن‌ها را می‌بینیم:
44

55
```js
6-
// 1. The table with `id="age-table"`.
6+
// 1. جدول یا `id="age-table"`
77
let table = document.getElementById('age-table')
88

9-
// 2. All label elements inside that table
9+
// 2. تمام عناصر label داخل آن جدول
1010
table.getElementsByTagName('label')
1111
// or
1212
document.querySelectorAll('#age-table label')
1313

14-
// 3. The first td in that table (with the word "Age")
14+
// 3. اولین td داخل آن جدول (با کلمه‌ی "Age")
1515
table.rows[0].cells[0]
1616
// or
1717
table.getElementsByTagName('td')[0]

0 commit comments

Comments
 (0)