add_classΒΆ

Add a css class to an html element.

Example:

{% button action={add_class target="myid" class="newclass"} %}

Adds the CSS class “newclass” to the element with HTML id “myid”.

See also

actions remove_class and toggle_class.

Previous topic

Actions

Next topic

addlog

Versions

Actions