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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.