How can i access specific HTML element based on its type using javascript?

if I have multiples html input tags and I want to access those with "radio" type how can i do that using the type?(not by id or name or class). I tried somethings like:
document.getElementsByTagName("input[type=’radio’]")[0];

8 thoughts on “How can i access specific HTML element based on its type using javascript?”

Leave a Comment