Appendix F
More Content Manipulation
Method/Property | Description | Return Value |
HTML | ||
after( content[, content]) |
Inserts the specified content after each selected element. One or more content items can be specified for inclusion and will be inserted sequentially. Content items can be an HTML snippet, a DOM element object reference, or a jQuery object. | jQuery |
after( function()) |
Executes a function that returns content to be inserted after the selected element(s). The content returned by the function can be an HTML string, a DOM element object reference, an Array of DOM element object references, or a jQuery object.As with most jQuery callback functions, this refers to the current element within the callback function, and the callback function is provided with the argument list: offset, html . |
jQuery |
append( content[, content]) |
Appends the specified content after any existing content for each selected element. One or more content items can be specified for inclusion and will be inserted sequentially. Content items can be an HTML snippet, a DOM element object reference, or a jQuery object. | jQuery |
append( function()) |
Executes a function that returns content to be appended. The content returned by the function can be an HTML string, a DOM element object reference, an Array of DOM element object references, or a jQuery object.As with most jQuery callback functions, this refers to the current element within the callback function, and the callback function is provided with the ... |
Get Web Development with jQuery now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.