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: |
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.
Note: See
TracTickets for help on using
tickets.
Did you read the docs before filing this? http://api.jquery.com/text/, http://api.jquery.com/html