getelementbyid
i am trying to do this. no luck. can any1 pls help:
var elem = document.body.getElementsByTagName('*');
var str = "";
var s = 0;
for(i=0; i<elem.length; i++)
{
ElementNow = elem(i).id;
ProperID = ElementNow.substring(0, (ElementNow.length - 9));
if(elem(i).type == 'text')
{
ProperID = document.getElementById(ProperID);
ElementNow.setControlDisabled(true);
ProperID.setStyle('color', 'red');
}
}
basically, get all elements from the page. for each text element, apply color red
var elem = document.body.getElementsByTagName('*');
var str = "";
var s = 0;
for(i=0; i<elem.length; i++)
{
ElementNow = elem(i).id;
ProperID = ElementNow.substring(0, (ElementNow.length - 9));
if(elem(i).type == 'text')
{
ProperID = document.getElementById(ProperID);
ElementNow.setControlDisabled(true);
ProperID.setStyle('color', 'red');
}
}
basically, get all elements from the page. for each text element, apply color red
t4
March 4,