title: How do I get the id of a textbox that is invoking a javascript function?
body: <p>What I want is to get the id (i.e myHeader, myHeader2, etc.)</p>
  
  <p>This is what I'm trying now, </p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;input type="text" id="myHeader" onblur="getValue(this)" /&gt;
  &lt;input type="text" id="myHeader2" onblur="getValue(this)" /&gt;
  &lt;input type="text" id="myHeader3" onblur="getValue(this)" /&gt;
  &lt;input type="text" id="myHeader4" onblur="getValue(this)" /&gt;
  </code></pre>
  
  <p>Javascript:</p>
  
  <pre><code>function getValue(obj){
      var someVar = document.getElementById(obj).value;
  }
  </code></pre>
  
  <p>But I'm not getting anything, the event is not firing as well, how do I do this?</p>