jquery遍历input取得input的name

(编辑:jimmy 日期: 2024/10/9 浏览:2)

复制代码 代码如下:
$("input:text", document.forms[0]).each(function(){alert(this.name)});