The append
function adds content to the element specified by the most recent runat
call. It can only be called once per runat
. Subsequent calls within the same runat
have no effect.
var result = new Result();
result
.runat("#table1")
.remove("tr")
.append("<tr><td>{data1}</td><td>{{data2}}</td></tr>");
Calling |
Returning |
result. append ( mask ) |
Result |
Parameters |
Type |
Description |
mask |
String |
The HTML snippet with data placeholders that will replace the removed tags. Example: <tr><td>{data1}</td><td>{{data2}}</td></tr> {data1} will be replaced and HTML-encoded with the value of the data1 field. {{field}} will be replaced but not HTML-encoded. |