title: Delete character by character
body: <p>i got a problem. I'm actually making a blog for myself and everything goes fine. But at a moment i wanted to do something cool with my inputs for login, so what if i could remove placeholder characters one by one ?</p>
  
  <pre><code>var run = 0;
  var inte;
  function removet(obj) {
      run = 0;
      setInterval(function () {
          if(run &gt; 8) {
              clearInterval();
          }
          else {
              stri = obj.placeholder;
              stri = stri.substring(0, stri.length - 1);
              obj.placeholder = stri;
              run++;
          }
      }, 22, obj);
  }
  </code></pre>
  
  <p>And, IT WORKS !
  ... but. I got a little problem.
  Here's my HTML:</p>
  
  <pre><code>&lt;input type="text" placeholder="Username" onblur="this.placeholder = 'Username'" onfocus="removet(this)"&gt;
  &lt;input type="password" placeholder="Password" onblur="this.placeholder = 'Password'" onfocus="removet(this)"&gt;
  &lt;button type="submit" id="login-button"&gt;Login&lt;/button&gt;
  </code></pre>
  
  <p>Deleting USERNAME works fine, but when i try that with password... The two are deleted at half. Why ? Where is my error ?</p>