Home > Web Front-end > JS Tutorial > body text

jquery implementation method for assigning values ​​to all input type=text controls

高洛峰
Release: 2017-02-11 17:01:56
Original
1458 people have browsed it

As shown below:

function resetData() {
   $("input[type=text]").each(
   function() {
   $(this).attr("value","");
   }
   );
 }
Copy after login

The above jquery implementation method for assigning values ​​to all input type=text controls is all the content shared by the editor. , I hope it can give you a reference, and I also hope that everyone will support the PHP Chinese website.

For more jquery implementation methods for all input type=text controls, please pay attention to the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!