jquery遍历input取得input的name

  

复制代码 代码如下:

  $("input:text", document.forms[0]).each(function(){alert(this.name)});