你可为所有的表单元素设置ID啊
比如element_1,element_2,element_3……element_i
然后
thiId += 1
eval("formName.element_" + thisId + ".className='aaa'");