# replace

Source: https://zotonic.com/docs/1986/replace

URI: https://zotonic.com/id/1986

Language: en



Replace the target HTML element, including the target element itself, with rendered HTML.

It accepts the same arguments as the <a href="/id/doc_template_action_action_update" class="doc-reference doc-reference-action"><code>action#update</code></a> action: use `text` for literal HTML or `template` to render a template. All additional arguments are passed to that template. `catinclude`, `include_all`, and `appear` are also supported.

```django
{% button text="Refresh" action={replace target="card" template="_card.tpl" id=id} %}
```

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1986?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/1986?language=en>)
