How to select all radio buttons with JS | javascript

Advait Joshi
1 min readOct 12, 2019

--

Today I’m filling long form which has several radio buttons due to which I get bored of it so I think why not do some fun stuff

I created some hack with JS to select or check all radio buttons on webpage with specific value

Here I’m showing demo on simple webpage with radio button “value = abc”

Let’s Do Some fun stuff

  1. open Developer tools of browser pressing ctrl+shift+I and go to console
A simple hack
Sample HTML to play with

2. press enter and you are done 😎

--

--

Advait Joshi
Advait Joshi

No responses yet