@LeonardoMancilha
Posted
Hello, Saul! As far I as know for you to select all the elements radio inputs you can do -> document.querySelectorAll('input[type=radio]'); I also have some difficulties selecting all the elements type input but search on Google and you are sure going to find out the solution for you. I always look on W3Schools for example and other websites such as StackOverflow, on Youtube, or with the communities that I have on Discord.
@xsaul
Posted
Hello Leonardo, I did select the elements with document.querySelectorAll('input[type=radio]'); but the problem was that when I clicked any of the inputs in the site the function was activated in all the inputs.
The function was when I click on any of the inputs add a green border to that input but with my code, it added the border to all the inputs.
And I could never make it work like that, so I selected the inputs one by one. But I know that isn't the best way to do it 😅.