+ 1
Java Script
Fill in the blanks to select all div elements and alert the content of the third div. var arr = document. getElementsByTagName(" "); alert(arr[ ].innerHTML);
9 ответов
+ 5
var arr = document.
getElementsByTagName("div");
alert(arr[2].innerHTML);
+ 2
Please imagine you how looks an array and you will get it.
0
You could review the course again so you won't forget it. Getting answers here means you don't know it permanently and will forget again.
0
blank (1)------div
blank (2)------2
0
Fill in the blanks to select all div elements and alert the content of the third div.
var arr = document.
getElementsByTagName("div");
alert(arr[2].innerHTML);
0
var arr = document.
getElementsByTagName("div");
alert(arr[2].innerHTML);
0
var
items = $("div").
siblings
();
items
.hide();
0
$("
#
txt").
siblings
().
remove
();
0
div
2