Home  >  Article  >  Web Front-end  >  jquery traverses the input to obtain the name_jquery of the input

jquery traverses the input to obtain the name_jquery of the input

WBOY
WBOYOriginal
2016-05-16 18:53:441101browse

Copy code The code is as follows:

$("input:text", document.forms[ 0]).each(function(){alert(this.name)});
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn