Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 17

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:


  • No labels