An ID doesn’t have any child nodes. It looks like you don’t want G_View to be an ID, but to be an element, so remove the .id from the end. (I don’t know if that’s valid anyway.)
ok
how do i solve the issue id i dont get the id & only get the element as ]
var G_View = document.getElementById(Grid_Name);
i have multiple grids(GridView) in a page
i need a function such tht depending on the grid focused first i need to get its id
like gridview1 …
for each grid i need to get childnodes
here is the function thts used
function SelectAll_G(G_Name)
{
var G_View = document.getElementById(G_Name);
if(GdView == null)
{
return false;
}
switch(G_View.id)
{