Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

get element with one or another class

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

PREVIOUS NEXT
Code Example
Javascript :: javascript function convert bytes into mb 
Javascript :: jquery alert with yes no 
Javascript :: trigger window resize 
Javascript :: check if file is empty javascript fs 
Javascript :: js get date in yyyy-mm-dd 
Javascript :: xmlhttprequest response 
Javascript :: redux useselector 
Javascript :: js 2d array to object 
Javascript :: electron js development auto refresh 
Javascript :: print hello world in javascript 
Javascript :: set css variable from javascript 
Javascript :: jquery validator no space 
Javascript :: nuxt head script content 
Javascript :: jquery trigger event when scroll to div 
Javascript :: javascript check if dom element exists 
Javascript :: get status bar height react native 
Javascript :: in puppeteer wait for page untile certain selector have certain value 
Javascript :: javascript check if two keys are pressed 
Javascript :: generate random hex code 
Javascript :: next js script tag 
Javascript :: react native socket io 
Javascript :: settime out with promise 
Javascript :: trigger click on checkbox jquery 
Javascript :: js today timestamp 
Javascript :: redux devtools extension npm 
Javascript :: javascript random number in range 
Javascript :: javascript string contains multiple substrings 
Javascript :: react js materilize 
Javascript :: javascript string change character at index 
Javascript :: add multiple class list at once in js 
ADD CONTENT
Topic
Content
Source link
Name
7+2 =