<form name="tFrm" action="" method="post">
<input type="text" name="abc" value="2">
<input type="text" name="abc" value="3">
<input type="text" name="abc" value="4">
<input type="text" name="abc" value="5">
</form>
<script language="javascript">
alert(tFrm.abc.length);
</script>
<input type="text" name="abc" value="2">
<input type="text" name="abc" value="3">
<input type="text" name="abc" value="4">
<input type="text" name="abc" value="5">
</form>
<script language="javascript">
alert(tFrm.abc.length);
</script>
解决方案 »
- 怎样使浏览器窗口一打开时实现最大化(要支持多浏览器)
- javascript/showModalDialog/弹出窗口鼠标选中文字问题/打印问题
- JavaScript 正常表达式问题
- 在网页中,如何实现“另存为”对话框??一般情况下,IE直接打开了,如何才能不直接打开,而是弹出另存为”对话框呢
- 图片移动(js特效)
- 脚本双引号转义?
- div.style.height=200px.但实际不止200,怎样取得实际的height?
- 请问 如何通过javascript控制一个td的classname?
- 如何改变select下拉框的图标?我想用cursor:hand,但是发现不管用?
- 根据你的分辨率自动跳转到指定的页面
- 如何在javascript中执行onunload事件?
- 如何控制输入框的长度啊,要用css吗?怎么写啊
<input type="text" name="abc[0]" value="2">
<input type="text" name="abc[1]" value="3">
<input type="text" name="abc[2]" value="4">
<input type="text" name="abc[3]" value="5">
</form>
<script language="javascript">
alert(tFrm.elements.length);
</script>
<form name="tFrm" action="" method="post">
<input type="text" name="abc" value="2">
<input type="text" name="abc" value="3">
<input type="text" name="abc" value="4">
<input type="text" name="abc" value="5">
</form>
<script language="javascript">
alert(tFrm.abc.length);
</script>