Search
 
SCRIPT & CODE EXAMPLE
 

HTML

filter htmlcollection

const existingElements = document.querySelectorAll(".chapter-list-item");

const chapters = Array.from(existingElements)
  .filter(chapter => !chapter.classList.contains("active"))

console.log("Found elements:")
for (const chapter of chapters) {
  console.log(chapter.textContent, chapter.className)
}
Comment

filter htmlcollection

const chapters = document.querySelectorAll(".chapter-list-item:not(.active)");

console.log("Found elements:")
for (const chapter of chapters) {
  console.log(chapter.textContent, chapter.className)
}
Comment

PREVIOUS NEXT
Code Example
Html :: bootstrap force majuscule class 
Html :: how to add progress bar in blogger 
Html :: eleventy add robots.txt 
Html :: data-parsley confirm password 
Html :: js lib alert 
Html :: short cut key to write basic html code 
Html :: how to insert a tag into a tag vscode 
Html :: boostrap date input withour day 
Html :: jQuery CDN | jQuery Migrate | jQuery UI | jQuery Mobile Latest Version 
Html :: EgQSovLEGMb3spAGIhBB1Si11KUheY5Knc9YT5LMMgFy 
Html :: jquery download text in html element new line 
Html :: vue src string concatenation 
Html :: tamanho fonts H1, H2, H3... 
Html :: font awesome free cdn 
Html :: localhost server html how to set up 
Html :: html unidades de medida 
Html :: Consider adding a lang attribute to the html start tag to declare the language of this document. 
Html :: jquery load data 
Html :: Blade deletes the html code in the file 
Html :: readium github 
Html :: Jawaban 1 
Html :: 360 degree rotate image website code 
Html :: jQuery Unobtrusive Ajax Helpers 
Html :: How can React read a session SET in PHP 
Html :: display pdf in html 
Html :: html character encoding examples 
Html :: html basic tags 
Html :: HTML <small Element 
Css :: css center in td 
Css :: disable click css 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =