js queryselector names
// This selects the first element with that name
document.querySelector('[name="your-selector-name-here"]');
js queryselector names
// This selects the first element with that name
document.querySelector('[name="your-selector-name-here"]');
javascript queryselectorall
<article class="article first">
<div class="wrapper">
<div class="oferts">
<div class="pro"></div>
<h1>This is the Pro Version</h1>
</div>
<div class="oferts">
<div class="normal"></div>
<h1>This is the normal Version</h1>
</div>
</div>
</article>
// You will get a NodeList as Output
// Try to do : console.log(typeof(oferts)) And you will see the type
<script>
var articleFirst = document.querySelectorAll("article.first");
console.log(articleFirst)
var oferts = articleFirst[0].querySelectorAll(".oferts");
console.log(oferts)
</script>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us