Ajax::prepend
Usage
void Ajax::prepend(string $divid, string $html)Description
Prepend text to the beginning of a div element.Parameters
Parameter | Required | Type | Description |
---|---|---|---|
$divid | Yes | string | The id of the element to prepend text to. |
$html | Yes | string | The text to prepend to the beginning of the specified element. |
Examples
Prepent
$ajax->prepend('my_paragraph', "Forgot to say, welcome to my site");