Replace Inner

replace_inner(<sel>, <expr>)

Replace the contents of the page element with the id given by <sel> with content given by the result of evaluating the expression (a string, var, extended quote, or string concatenation).

replace_inner("#foo", "This is the text")
The content of this Div will be replaced by a string when the demo application is run.


See this action in action!

ruleset a60x123 {
  meta {
    name "Replace Inner Example"
    author "Mike Grace"
    description <<
      Replace Inner example for documentation
    >>
    logging on
  }
  dispatch {
    domain "docs.kynetx.com"
  }
  rule replacing_inner is active {
  select using "http://docs.kynetx.com/krl/kynetx-rule-language-documentation/actions/replace-inner/" setting ()
    replace_inner("#replacement_area", "The content has been replaced");
  }
}