Search
 
SCRIPT & CODE EXAMPLE
 

HTML

get all classes from html file

var lst=[];
document.querySelectorAll("[class]").forEach( (e)=>{  
e.getAttribute("class").split(" ").forEach( (cls)=>{if( cls.length>0 && lst.indexOf(cls)<0) lst.push(cls);}
);
 });
console.log(lst.sort());
Comment

get all classes in a html file

var lst=[];
document.querySelectorAll("[class]").forEach( (e)=>{  
e.getAttribute("class").split(" ").forEach( (cls)=>{if( cls.length>0 && lst.indexOf(cls)<0) lst.push(cls);}
);
 });
console.log(lst.sort());
Comment

PREVIOUS NEXT
Code Example
Html :: <h1 
Html :: how to create table 5 column wise in in html and append it in qury selector and remove it 
Html :: <a href="https://api.whatsapp.com/send?phone=15551234567"Send Message</a  
Html :: how to import html to html file to get code into the html file 
Html :: difference between core attribute and generic attributes in html 
Html :: falling star animation code 
Html :: ipad web hide interface html 
Html :: canonical syntax 
Html :: how to make password in html correct or incorrect 
Html :: remove jsessionid from url spring 
Html :: html tag link tittle bar 
Html :: how to make option values contain spaces in html 
Html :: html document 4.0 
Html :: =rept sheet 
Html :: upwork 
Html :: use html how to open dwg files 
Html :: how to give value to model from radio button html asp with enums if checked 
Html :: https://api.github.com/search/issues?q=windows+label:bug+language:python+state:open&sort=created&order=asc 
Html :: text align justify html 
Html :: store json object in data attribute in html 
Html :: html overflow with span 
Html :: Remove address underlining formatting from gmail 
Html :: web development html chapter 1 
Html :: site.baseurl page.image_path 
Html :: react native html view 
Html :: html programming language 
Html :: how to put a name to anchor in html 
Html :: repeat task multicraft 
Html :: img tag in html 
Html :: html star 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =