Skip to content

Instantly share code, notes, and snippets.

@faulander
Last active July 17, 2021 17:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save faulander/703bdab9bc3d04fd9ee119aeac6b1733 to your computer and use it in GitHub Desktop.
Save faulander/703bdab9bc3d04fd9ee119aeac6b1733 to your computer and use it in GitHub Desktop.
[Call a function after htmx swap] #htmx #python #django
<script>
htmx.on("htmx:afterSwap", function(evt) {
<Function_to_call>;
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment