Advertisement
minafaw3

input

Nov 28th, 2015
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. var node_list = document.getElementsByTagName('input');
  2.  
  3. for (var i = 0; i < node_list.length; i++) {
  4. var node = node_list[i];
  5.  
  6. if (node.getAttribute('type') == 'text') {
  7. // do something here with a <input type="text" .../>
  8. // we alert its value here
  9. alert(node.value);
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement