Append content to the inside of every matched element.
This operation is similar to doing an appendChild to all the specified elements, adding them into the document.
Example:
Appends some HTML to all paragraphs.
$("p").append("<b>Hello</b>");
HTML:
<p>I would like to say: </p>
Result:
<p>I would like to say: <b>Hello</b></p>
No comments:
Post a Comment