Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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
themeConfluence
languagejavascript
append("#foo", "<p>This is the text</p>")

The following ruleset shows append() being used

Code Block
themeConfluence
languagejavascript
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
srchttp://dl.dropbox.com/u/57162158/kynetx_examples/append_example.html
width750px
idappend_demo
titleDemonstration of append()