javascript
Get Pseudo elements using Javascript
var elem = window.getComputedStyle(document.querySelector('.element'), ':before');
elem.getPropertyValue('color');
Was this helpful?
Similar Posts
- Get all child elements of parent element in javascript
- Join two arrays and remove duplicate elements using Javascript
- Lodash - Get all elements of array except the last one
- How to Remove duplicate elements from array in JavaScript ?
- Remove first n elements from an array using Lodash
- Remove last n elements from an array using Lodash
- Order and find elements