| 发表于:2007-09-13 10:43:49 楼主 |
现在有两排 左边: <input type= "text " id= 'a ' name= 'test ' value= '100 '> <input type= "text " id= 'b ' name= 'test ' value= '200 '> <input type= "text " id= 'c ' name= 'test ' value= '300 '> <input type= "text " id= 'd ' name= 'test ' value= '400 '> .... 右边: <input type= "text " id= 'a2 ' name= 'test2 ' value= '500 '> <input type= "text " id= 'b2 ' name= 'test2 ' value= '600 '> <input type= "text " id= 'c2 ' name= 'test2 ' value= '700 '> <input type= "text " id= 'd2 ' name= 'test2 ' value= '800 '> .... 现在脚本要实现如下功能: 1> 如何用循环的方式判断右边所有 value 是否为空? 2> 如何用循环方式判断左边和右边匹配的是否相等。(说明: a 和 a2、 b和b2、c和c2、d和d2 ....是一一匹配的) 重点是,我对js查找控件,循环控件值不熟悉。 谢谢解决。 |
|
|
|
|