(Classic) after()

Engine Compatibility

after is not supported by the Node engine.

after(<selector>, <html>)

Place the <html> after (as a sibling of) the element selected by <selector>. The selector used can be any valid JQuery selector.

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

The following ruleset shows after() being used

ruleset a16x139 {
   meta {
    name "demonstration of after()"
    author "Phil Windley and Mike Grace"
    logging off
  }
  dispatch {
    domain "docs.kynetx.com"
  }
  rule after_example_rule {
    select using ".*"
    after("#second", "<li style=\"color:red;border:3px solid red\">You fired the after rule!</li>");
  }
}

The following demonstrates the preceding rule:


Copyright Picolabs | Licensed under Creative Commons.