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