G
Guest
hey all,
in vs2k3 i could loop thru all the elements in the document like the
following:
function getscrollvalue(){
elm=document.Form1.elements;
for(i=0;i<elm.length;i++)
if(elm.type=="text" && elm.name.match("scrollvalue")!=null){
a=elm;
a.value=(a.value=="")?0:a.value
}
}
is it different in vs2k5? because i'm getting "form1 is null or not an object"
thanks,
rodchar
in vs2k3 i could loop thru all the elements in the document like the
following:
function getscrollvalue(){
elm=document.Form1.elements;
for(i=0;i<elm.length;i++)
if(elm.type=="text" && elm.name.match("scrollvalue")!=null){
a=elm;
a.value=(a.value=="")?0:a.value
}
}
is it different in vs2k5? because i'm getting "form1 is null or not an object"
thanks,
rodchar