mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-10-02 15:25:26 +00:00
Update docs.md
This commit is contained in:
parent
03cacce5a6
commit
4bd28579b2
@ -542,7 +542,7 @@ Htmx has an extensive events mechanism, which doubles as the logging system.
|
|||||||
If you want to register for a given htmx event you can use the following javascript:
|
If you want to register for a given htmx event you can use the following javascript:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
htmx.on("htmx.load", function(evt) {
|
htmx.on("htmx:load", function(evt) {
|
||||||
myJavascriptLib.init(evt.details.elt);
|
myJavascriptLib.init(evt.details.elt);
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user