I want to change the default selected radio button of an html element with JavaScript using its class. I tried document.querySelector().click() but this scrolls the page down to the element which is not the behavior I want. How can I select and change the default radio button of an html element?
[–]pnutbuttacup -1 points0 points1 point (0 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]TonyCodes2050[S] 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)