Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var node_list = document.getElementsByTagName('input');
- for (var i = 0; i < node_list.length; i++) {
- var node = node_list[i];
- if (node.getAttribute('type') == 'text') {
- // do something here with a <input type="text" .../>
- // we alert its value here
- alert(node.value);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement