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 :: how to inherit template expath odoo 
Html :: how to put a vertical word on the left of a table in html 
Html :: xpath alt contains 
Html :: filter htmlcollection 
Html :: html webgl 
Html :: who invented html 
Html :: truncate text line clamp 
Html :: 6 May 2492. 
Html :: how to download youtube videos in pc though html 
Html :: Form INPUT Determine multiple file extensions 
Html :: Error: Stray start tag script. 
Html :: jquery download text in html element new line 
Html :: html comment line 
Html :: html set name chatapp 
Html :: what is merge strategy? 
Html :: redirect user when want to access html page 
Html :: reuse html elemrnt id 
Html :: An error occurred while retrieving token. DOMException: Registration failed - push service error 
Html :: java ee static html 
Html :: html MCSTUPID 
Html :: visa card 
Html :: block iframe pubblicity 
Html :: How do you write a basic HTML code? 
Html :: html select subselect 
Html :: Uncaught TypeError: CanvasRenderingContext2D.drawImage: Argument 1 could not be converted to any of: HTMLImageElement, SVGImageElement, HTMLCanvasElement, HTMLVideoElement, OffscreenCanvas, ImageBitmap 
Html :: bulma search dropdown 
Html :: html code for list box with checkbox 
Html :: onclick call php function with parameters 
Css :: css add dots if text too long 
Css :: button style none 
ADD CONTENT
Topic
Content
Source link
Name
4+4 =