Home > Web Front-end > JS Tutorial > Summary of the differences between jquery text(), val(), and html() methods_jquery

Summary of the differences between jquery text(), val(), and html() methods_jquery

WBOY
Release: 2016-05-16 17:17:53
Original
1002 people have browsed it

text():1. Get the text content of each matching element without parameters

2. There are parameters. Assign a value

to each matching element

val():

1. Get the value of the first matching element without parameters 2. There are parameters. Assign a value to each matching element

html():1. Get the tag content

of the first matching element

without parameters 2. There are parameters to assign values ​​ to each matching element

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