• function

can.append

 

Append content to elements.

can.append(nodeList, html)

Parameters

  1. nodeList {NodeList}

    A nodelist of the elements to append content to.

  2. html {String}

    The HTML to append to the end of the elements in nodeList.

can.append( wrappedNodeList, html ) inserts content to the end of each wrapped node list item(s) passed.

// Before
can.append( can.$('#demo'), 'Demos are fun!' ); // After
Demos are fun!