# jQuery Insert

The Insert action allows you to insert HTML into an element on the page. You may choose to append the data, so it will appear at the end, or prepend, so any HTML you insert appears before HTML that was already present. You may also choose to entirely replace the content of the element using either 'html' or 'text', 'html' will only function in HTML, not XHTML documents however. Finally, you may also choose to use 'appendTo' to 'prependTo', which instead of HTML or text, take the argument of a jQuery selector such as `'DIV.#myid_2'`,and will insert the element(s) which respond to that selector.

To use the Insert action, just select the element to affect in the usual way, then enter some HTML to insert (or choose an example from the gear menu). Choose whether you want to append or prepend, and the action is now able to insert data.

## Note

You should insert quoted, valid text or HTML. Instead, you may also choose to use a function to deliver the required text, in that case, it should not be quoted.