---
title: "Discussion on \"Selecting and manipulating CSS pseudo-elements such as ::before and ::after using JavaScript (EASY WAY)\" | Hashnode"
description: "Discussion on \"Selecting and manipulating CSS pseudo-elements such as ::before and ::after using JavaScript (EASY WAY)\". So this title you are looking at - Yes its an actual stackoverflow question.The question has 980 upvotes and it's top answer has 723 upvotes. Then the question arises, why write an article about it then. Well, for starters I really wanted to answer t..."
url: "https://hashnode.com/posts/selecting-and-manipulating-css-pseudo-elements-such-as-before-and-after-using-javascript-easy-way/5fea3fba04b82a4a877f397c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Selecting and manipulating CSS pseudo-elements such as ::before and ::after using JavaScript (EASY WAY)](https://ridhik.hashnode.dev/selecting-and-manipulating-css-pseudo-elements-such-as-before-and-after-using-javascript-easy-way?utm_source=hashnode&utm_medium=feed)

So this title you are looking at - Yes its an actual stackoverflow question.The question has 980 upvotes and it's top answer has 723 upvotes. Then the question arises, why write an article about it then. Well, for starters I really wanted to answer t...

Dec 20, 2020 · 6 min read · ridhik.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#css](https://hashnode.com/tag/css)
-   [#tips](https://hashnode.com/tag/tips)

## Written by

[Ridhik Govind](https://hashnode.com/@fluffyRidz)

@fluffyRidz · Kochi, India

  
[View profile](https://hashnode.com/@fluffyRidz)

Self-taught Front-End Developer. I work with HTML | CSS | JS | REACT.JS | NODE.JS

Building stuff that works...Eventually .

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
