Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

query selector element with 2 classes

var list = document.querySelectorAll(".class1.class2");
//Class1 AND Class2
var list = document.querySelectorAll(".class1,class2");
//Class1 OR Class2
Comment

PREVIOUS NEXT
Code Example
Javascript :: query select multiple classes 
Javascript :: jquery get text 
Javascript :: javascript string array sort alphabetically 
Javascript :: javascript html encode 
Javascript :: how to save cookie in JavaScript 
Javascript :: react native different styles for ios and android 
Javascript :: select html react 
Javascript :: electronjs npm start in full screen 
Javascript :: get number from range line js 
Javascript :: how to make a modal stay center of screen 
Javascript :: javascript check if boolean is undefined 
Javascript :: js code to take value from form and store it in a variable 
Javascript :: /on in jquery 
Javascript :: canvas umu 
Javascript :: find string in array javascript 
Javascript :: Parcel, how to fix the `regeneratorRuntime is not defined` error 
Javascript :: geofencing javascript example 
Javascript :: javascript sort by big amount to small desc 
Javascript :: cypress have attribute 
Javascript :: javascript how to raise the error 
Javascript :: white screen issue in react native splashscreen 
Javascript :: replace string using javascript 
Javascript :: code Execution time in nodejs 
Javascript :: javascript sample list 
Javascript :: angular goto top of page 
Javascript :: react onclick with event 
Javascript :: livewire upload progress 
Javascript :: scrollview refresh 
Javascript :: nuxt lang 
Javascript :: iterate object js 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =