File tree Expand file tree Collapse file tree
2-ui/1-document/04-searching-elements-dom Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -286,14 +286,14 @@ document.getElementsByTagName('input')[0].value = 5;
286286
287287
288288```html run
289- <div>First div</div>
289+ <div>div اول </div>
290290
291291<script>
292292 let divs = document.getElementsByTagName('div');
293293 alert(divs.length); // 1
294294</script>
295295
296- <div>Second div</div>
296+ <div>div دوم </div>
297297
298298<script>
299299*!*
@@ -308,7 +308,7 @@ document.getElementsByTagName('input')[0].value = 5;
308308
309309
310310```html run
311- <div>First div</div>
311+ <div>اول div</div>
312312
313313<script>
314314 let divs = document.querySelectorAll('div');
@@ -324,19 +324,19 @@ document.getElementsByTagName('input')[0].value = 5;
324324</script>
325325```
326326
327- Now we can easily see the difference. The static collection did not increase after the appearance of a new `div` in the document.
327+ .افزایش نیافته است static مجموعهی ،document جدید در div حالا میتوانیم تفاوت را به راحتی ببینیم. بعد از ایجاد شدن یک
328328
329- ## Summary
329+ ## خلاصه
330330
331- There are 6 main methods to search for nodes in DOM:
331+ .وجود دارد DOM ها در node شش روش اصلی برای جستجو در
332332
333333<table>
334334<thead>
335335<tr>
336- <td>Method </td>
337- <td>Searches by ...</td>
338- <td>Can call on an element? </td>
339- <td>Live? </td>
336+ <td>روش </td>
337+ <td>جستجو بر اساس ...</td>
338+ <td>فراخوانی شود؟ element میتواند روی </td>
339+ <td>زنده؟ </td>
340340</tr>
341341</thead>
342342<tbody>
You can’t perform that action at this time.
0 commit comments