I've used ASP with javascript for a while. But I haven't
figured out how to index HTML objects so I can loop through them in a javascript.
If I for instance have four inputfields:
<INPUT name=obj1><INPUT name=obj2><INPUT name=obj3><INPUT name=obj4>
Is it possible to loop through these in any way? Or do I
have to rename them like obj[1]...obj[2]...etc?
This is an example of what I would like to do (or likewise):
<SCRIPT language=javascript>
for (i=1;i<4;i++) {
document.form.obj.visible = true
}
</SCRIPT>
I'm always told that there is no corresponding object.
thanx,
fredrik
figured out how to index HTML objects so I can loop through them in a javascript.
If I for instance have four inputfields:
<INPUT name=obj1><INPUT name=obj2><INPUT name=obj3><INPUT name=obj4>
Is it possible to loop through these in any way? Or do I
have to rename them like obj[1]...obj[2]...etc?
This is an example of what I would like to do (or likewise):
<SCRIPT language=javascript>
for (i=1;i<4;i++) {
document.form.obj.visible = true
}
</SCRIPT>
I'm always told that there is no corresponding object.
thanx,
fredrik