title: get text of Hidden <SPAN> in javascript
body: <p>I have 4 <code>&lt;SPAN&gt;</code> ,out of which 3 are hidden (<code>display:none</code>) in dynamic gridview</p>
  
  <pre><code>&lt;tr&gt;
     &lt;SPAN id="Span1"&gt;Name&lt;/SPAN&gt;
     &lt;SPAN id="Span2" style="display:none"&gt;&lt;/SPAN&gt;
     Id1&lt;SPAN id="Span3" style="display:none"&gt;Id2&lt;/SPAN&gt;
     &lt;SPAN id="Span3" style="display:none"&gt;Id3&lt;/SPAN&gt;
  &lt;/td&gt;
  </code></pre>
  
  <p>How could I get the text of those? I am getting that element in alert as <code>[object HtmlSpanElement]</code>. I had written it using <code>innerHtml</code> &amp; <code>innerText</code> but result <code>undefined</code>.</p>