(Classic) append()

Engine Compatibility

append is not supported by the Node engine.

append(<selector>, <html>)

Append the <html> to the inside of the element selected by <selector>. The selector used can be any valid JQuery selector.

append("#foo", "<p>This is the text</p>")

The following ruleset shows append() being used

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:

Copyright Picolabs | Licensed under Creative Commons.