Hi,
Can I create an array of tags by assigning same name to these tags?
For example, I have two <p> tags with the same name t1. But
document.all.b. value=document. all.t.length
does not work. It works if the tags are <input type=radio...>. This
line is OK:
document.all.bt n.value=documen t.all.b.length
What are the tags that can be use as an array of tags by assigning
same name to these tags?
<HTML><script language="JavaS cript">
function checkButtonSets (){
//document.all.bt n.value=documen t.all.t.length
document.all.bt n.value=documen t.all.b.length
}</script><HEAD>
<BODY>
<p name="t" id=q></p>
<p name="t" id=q></p>
<input type="Radio" name="b" value="a2">a2
<input type="Radio" name="b" value="a3">a3<b r>
<input name="btn" type="Button" value="Check Button Sets"
onClick="checkB uttonSets()">
</BODY></HTML>
Can I create an array of tags by assigning same name to these tags?
For example, I have two <p> tags with the same name t1. But
document.all.b. value=document. all.t.length
does not work. It works if the tags are <input type=radio...>. This
line is OK:
document.all.bt n.value=documen t.all.b.length
What are the tags that can be use as an array of tags by assigning
same name to these tags?
<HTML><script language="JavaS cript">
function checkButtonSets (){
//document.all.bt n.value=documen t.all.t.length
document.all.bt n.value=documen t.all.b.length
}</script><HEAD>
<BODY>
<p name="t" id=q></p>
<p name="t" id=q></p>
<input type="Radio" name="b" value="a2">a2
<input type="Radio" name="b" value="a3">a3<b r>
<input name="btn" type="Button" value="Check Button Sets"
onClick="checkB uttonSets()">
</BODY></HTML>
Comment