Accessing hidden column data
Hi all,
I have an ASP.NET databound datagrid and have added in an extra
column that holds a simple HTML control ie,
<SPAN id=uniqueid>my span text</SPAN>
I have a JavaScript function that can read the innerText of the
span (using document.getElementById(uniqueid).
My really frustrating problem is that:
I want to make the <SPAN>s hidden. But if I do this,
I then cannot access its innerText. I've tried using other
pure HTML controls and I always get the same problem.
Can I have a hidden HTML control and still access
its innerText ? Or should I use another type of HTML control
to hold 'embedded data' that I dont want the viewer to see but
can reference by its unique id?
Thanks in advance. Muchly frustrated beginner
I
|