How to Get all Textboxes from a Group of Elements using JavaScript

I have three textboxes (below) with some attributes like type, id and event. I also have a checkbox, a group of radio buttons and a Button. These are all <input /> elements. Clicking the Button will call a JavaScript function, which will get me only the textboxes along the attributes.

Name: Designation: Age:

Countries India USA

Go back to the Tutorial
More interesting and interactive Demos