# toggle

Source: https://zotonic.com/docs/1509/toggle

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

Language: en



Toggle the visibility of an element.

Example:

```django
{% button action={toggle target="myid"} %}
```

Shows the element with id myid if it was hidden, otherwise hide it.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1509?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/1509?language=en>)
