1// First Element:
2document.querySelector('.class')
3
4// Multiple Elements:
5document.querySelectorAll('.class')
1//Pretend there is a <p> with class "example"
2const myParagraph = document.querySelector('.example');
3//You can do many this with is
4myParagraph.textContent = 'This is my new text';
1document.querySelectorAll('[property]'); // All with attribute named "property"
2document.querySelectorAll('[property="value"]'); // All with "property" set to "value" exactly.
3
1var test = document.querySelectorAll('input[value][type="checkbox"]:not([value=""])');