Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // gather ALL the inputs
- var inputs = document.getElementsByTagName("input");
- for (x in inputs){
- if(typeof inputs[x] != 'object'){
- // if it wasn't actually an HTML element, skip it
- continue;
- }
- if(inputs[x].getAttribute('type') == 'hidden'){ // ensure it's a *HIDDEN* element
- alert(inputs[x].getAttribute('name') + " : " + inputs[x].getAttribute('value'));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement