Web Development with jQuery®

(Elliott) #1

bapp06.indd 02/17/2015 Page 527


More Content Manipulation


METHOD/PROPERTY DESCRIPTION RETURN
VALUE

HTML

after(content[, content]) Inserts the specifi ed content after each
selected element. One or more content
items can be specifi ed 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 refer-
ence, an Array of DOM element object refer-
ences, or a jQuery object.
As with most jQuery callback functions, this
refers to the current element within the call-
back function, and the callback function is
provided with the argument list: offset,
html.

jQuery

append(content[,
content])

Appends the specifi ed content after any
existing content for each selected element.
One or more content items can be specifi ed
for inclusion and will be inserted sequentially.
Content items can be an HTML snippet, a
DOM element object reference, or a jQuery
object.

jQuery

F


continues

http://www.it-ebooks.info

Free download pdf