Skip to end of metadata
Go to start of metadata

Update HTML element content on the page.

Syntax

Attributes

Attribute

Value

Default

Description

target*

string

 

HTML element ID for selecting the target element, which content is going to be updated.

selector*string A CSS selector for selecting the target element.

replace

true,false

false

Indicates, whether the content of the HTML element should be refreshed (false) or if the new content should replace the target HTML element

append

true,false

false

Indicates, whether the new content should be appended to the targer HTML element.

prepend

true,false

false

Indicates, whether the new content should be prepended to the targer HTML element.

class-add

CSS class

 

CSS class (or whitespace separated CSS class list), which should be added to the target HTML element.

class-remove

CSS class

 

CSS class (or whitespace separated CSS class list), which should be removed from the target HTML element.

html/text contents

string

 

The new content, which is going to be used for the target HTML element update. The content should be escaped or wrapped in CDATA block.

* Both target and selector attributes are used to select the target element of this instruction. Only one of them is required. When both are present, attribute selector has precedence.

Events - JS API

Examples

Zdrojové HTML
  • No labels