how to find gridview hidden label value from javascript
Is you really need this, make sure that only change GridView1 to your GridView Id
var c = document.getElementsByTagName("table");
for (var i = 0; i < c.length; i++) {
if (c[i].id.indexOf("GridView1") > -1) {
var hidd = c[i].getElementsByTagName("input");
for (var j = 0; j < hidd.length; j++) {
if (hidd[j].type == "hidden")
alert(hidd[j].id);
}
}
}
"And whoever is removed away from the Fire and admitted to Paradise, he indeed is successful." (The Holy Quran)
Excellent Windows VPS Hosting Imran Baloch MVP, MVB, MCP, MCTS, MCPD
imran_ku07
All-Star
45785 Points
7698 Posts
MVP
Re: how to find gridview hidden label value from javascript
Jan 07, 2010 11:56 AM|LINK
Is you really need this, make sure that only change GridView1 to your GridView Id
var c = document.getElementsByTagName("table"); for (var i = 0; i < c.length; i++) { if (c[i].id.indexOf("GridView1") > -1) { var hidd = c[i].getElementsByTagName("input"); for (var j = 0; j < hidd.length; j++) { if (hidd[j].type == "hidden") alert(hidd[j].id); } } }Excellent Windows VPS Hosting
Imran Baloch MVP, MVB, MCP, MCTS, MCPD