append(<selector>, <html>)
Append the <html>
to the inside of the element selected by <selector>
. The selector used can be any valid JQuery selector.
Code Block |
---|
theme | Confluence |
---|
language | javascript |
---|
|
append("#foo", "<p>This is the text</p>") |
The following ruleset shows append() being used
Code Block |
---|
theme | Confluence |
---|
language | javascript |
---|
|
ruleset a1299x164 {
meta {
name "Append Example"
author "nathan cerny"
logging off
}
dispatch {
// domain "exampley.com"
}
rule append_example_rule {
select using ".*"
append("#append", "<span style=\"color:red;\">| You fired the after rule </span>");
}
} |
The following demonstrates the preceding rule:
Iframe |
---|
src | http://dl.dropbox.com/u/57162158/kynetx_examples/append_example.html |
---|
width | 750px |
---|
id | append_demo |
---|
title | Demonstration of append() |
---|
|