(Classic) prepend()
Engine Compatibility
prepend
is not supported by the Node engine.prepend(<selector>, <html>)
Prepend the <html> to the inside of the element selected by <selector> as the first child.
prepend("#foo", "<p>This is the text</p>")
The following ruleset shows prepend() being used
ruleset a1299x179 { meta { name "Prepend Example" author "nathan cerny" logging off } dispatch { // domain "exampley.com" } rule append_example_rule { select using ".*" prepend("#prepend", "<span style=\"color:red;\"> You fired the after rule:</span>"); } }
The following demonstrates the preceding rule:
Copyright Picolabs | Licensed under Creative Commons.