Bug Tracker

Opened 10 years ago

Closed 10 years ago

#12940 closed bug (notabug)

html() and text()

Reported by: yun Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.3
Keywords: Cc:
Blocked by: Blocking:


When i use $("li").text() I can obtained all the text of the <li>. However, when I use $("li").html(), I can only to obtained the first node of <li>. html() and text() are not working on the same context. The version of the jquery is 1.8.3.

Change History (1)

comment:1 Changed 10 years ago by Rick Waldron

Resolution: notabug
Status: newclosed

Did you read the docs before filing this? http://api.jquery.com/text/, http://api.jquery.com/html

Note: See TracTickets for help on using tickets.