Hi ,
In one of the javascript functions , i need to get the ids of the
elements. This function works in Internet Explorer :
var TabNames = ParentTab.childNodes ;
for ( i = 0 ; i < TabNames.length ; i++ )
{
var TabID = TabNames[i].getAttribute('id') ;
var TabIDSuffix = TabID.split (Splitter) ;
if ( TabIDSuffix[0].length != 0 )
{
if ( TabIDSuffix[0] == URLTab )
{
result = true ;
break ;
}
}
}
// TabNames is the array of divs which are enclosed in the parent div.
But in Firefox it gives an error saying :
Error: TabNames[i].getAttribute is not a function
Is there an alternate way to do this.