This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
@@ -98,6 +98,14 @@
|
||||
// 1. das h1-Element findet.
|
||||
// 2.das Element mit der id buy_form findet.
|
||||
// 3. das Element mit der id product_img findet.
|
||||
console.log(document.querySelector('h1'));
|
||||
// console.log(document.getElementsByTagName('h1')[0]);
|
||||
|
||||
console.log(document.querySelector('#buy_form'));
|
||||
console.log(document.getElementById('buy_form'));
|
||||
|
||||
console.log(document.querySelector('#product_img'));
|
||||
console.log(document.getElementById('product_img'));
|
||||
})();
|
||||
</script>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user