Plugins

User login
Can't find a Plugin?

Can't find a Plugin you are looking for? Check out the jQuery Wiki page.

Are you a plugin developer? Please move your plugin over to this site.

Website Bug or Feature Request?

Found a bug on the new jQuery Plugin website? Have a feature request?

Submit it to the jQuery Plugin website issue queue to ensure it is noticed!

appendText


Average rating
(4 votes)

Description

This (very) small plugins is the incestuous child of "append" and "text": it appends a new Text Node.

This is especially important when you want to append user-supplied input, because a Text Node is never interpreted as HTML.

Example

var $myLabel = $("<label/>")
    .append("<input type='checkbox'/>")
    .appendText("use HTML <a href=''>");

Will add to the DOM the equivalent of the following HTML:

<label><input type='checkbox'/>use HTML &lt;a href=''&gt;</label>

Releases

Official releasesDateSizeLinksStatus
1.0.02007-Jun-25482 bytesRecommended for 1.1.xThis is currently the recommended release for 1.1.x.

Resources