Advertisement
Francoo

Textbox filler

Sep 12th, 2013
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (function(d) {
  2.     var input = d.getElementsByTagName('input');
  3.     var i = input.length;
  4.     while (i--)
  5.     {
  6.         if (input[i].type === 'text')
  7.         {
  8.             //var quant = input[i].getAttribute('value')
  9.             input[i].setAttribute('value', '10'); // Substitua o 10 com o valor.
  10.         }
  11.     }
  12. })
  13. (this.document);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement