1. 程式人生 > >JQuery常用的 api

JQuery常用的 api

con .com post text elements rst each jquer clas

text

http://api.jquery.com/text/

Get the combined text contents of each element in the set of matched elements, including their descendants後裔, or set the text contents of the matched elements.

html

http://api.jquery.com/html/

Get the HTML contents of the first element in the set of matched elements or set the HTML contents of every matched element.

val

http://api.jquery.com/val/

Get the current value of the first element in the set of matched elements or set the value of every matched element.

JQuery常用的 api