Modify ↓
Ticket #8440 (closed enhancement: wontfix)
SUGGESTION: Make .append() able to take a URL in the same manner as .load()
| Reported by: | jp@… | Owned by: | |
|---|---|---|---|
| Priority: | undecided | Milestone: | 1.next |
| Component: | unfiled | Version: | 1.5.1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
It would be convenient to append things from other pages.
ex: $('#box').append(' http://somewhere.com #someDiv');
Change History
comment:1 Changed 2 years ago by paul.irish
- Status changed from new to closed
- Resolution set to wontfix
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

cool idea.
so instead of
$('#box').append(' http://somewhere.com #someDiv');you can just do
$('<div></div>').appendTo('#box').load('http://somewhere.com #someDiv');which just requires a touch more work but really its not too bad.