Z z1w2x3 Unregistered / Unconfirmed GUEST, unregistred user! 2001-02-09 #1 javascript 问题:如何获得一个元素(elements 如 button)在form中的索引号(index)
C coobo Unregistered / Unconfirmed GUEST, unregistred user! 2001-02-14 #4 方法有些笨: var elementCount =do cument.forms.bodyForm.elements.length; for (i =0; i < elementCount; i++) { var type =do cument.forms.bodyForm.elements.type; if (type == "radio") { the_index = i; break; } }
方法有些笨: var elementCount =do cument.forms.bodyForm.elements.length; for (i =0; i < elementCount; i++) { var type =do cument.forms.bodyForm.elements.type; if (type == "radio") { the_index = i; break; } }