Bug Tracker

Opened 6 years ago

Closed 6 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:

Description

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 6 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.