Hi All,
I am using this funcion to manipulate form elements;
every thing works fine except the reference to the disabled property.
Any help (the property works fine when used in classic manner)?
Thanks!
G
function getObj(name)
{
if (document.getEl ementById)
{
this.obj = document.getEle mentById(name);
this.style = document.getEle mentById(name). style;
this.disabled = document.getEle mentById(name). disabled;
}
else if (document.all)
{
this.obj = document.all[name];
this.style = document.all[name].style;
this.disabled = document.all[name].disabled;
}
else if (document.layer s)
{
this.obj = document.layers[name];
this.style = document.layers[name];
this.disabled = document.layers[name].disabled;
}
}
I am using this funcion to manipulate form elements;
every thing works fine except the reference to the disabled property.
Any help (the property works fine when used in classic manner)?
Thanks!
G
function getObj(name)
{
if (document.getEl ementById)
{
this.obj = document.getEle mentById(name);
this.style = document.getEle mentById(name). style;
this.disabled = document.getEle mentById(name). disabled;
}
else if (document.all)
{
this.obj = document.all[name];
this.style = document.all[name].style;
this.disabled = document.all[name].disabled;
}
else if (document.layer s)
{
this.obj = document.layers[name];
this.style = document.layers[name];
this.disabled = document.layers[name].disabled;
}
}
Comment