Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

select element as role in jquery

// remove active class from all elements
document.querySelectorAll('[role="presentation"]').forEach(function (el){
el.classList.remove("active");
});

// add class 'active' to last element
document.querySelectorAll('[role="presentation"]:last-of-type')[0].classList.add("active")
Comment

PREVIOUS NEXT
Code Example
Javascript :: sublime format json 
Javascript :: React CKEditor Custom build 
Javascript :: route pass props to component 
Javascript :: imdb-api 
Javascript :: change theme in react-toastify 
Javascript :: how to convert array into string in js 
Javascript :: safeareaview react native android 
Javascript :: angular refresh token 
Javascript :: append meta tag to head javascript 
Javascript :: javascript true random 
Javascript :: javascript disable form 
Javascript :: access selected option in jquery 
Javascript :: Nodemailer gmail new configuration 
Javascript :: command to delete node modules 
Javascript :: javascript copy image to clipboard 
Javascript :: picker change event react native 
Javascript :: javascript shuffle string 
Javascript :: inline style react 
Javascript :: wait function in javascript 
Javascript :: react set cookie 
Javascript :: nodejs: read and write file: use fs and promise 
Javascript :: access to xmlhttprequest has been blocked by cors policy react 
Javascript :: create function replace all n javescript 
Javascript :: javascript get element by id 
Javascript :: express js static files 
Javascript :: firestore javascript delete document 
Javascript :: javascript loop and array 
Javascript :: javascript code 
Javascript :: google sheets api javascript 
Javascript :: Material-ui add alert icon 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =