mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-10-01 06:51:32 +00:00
better API docs
This commit is contained in:
parent
65c169b8b9
commit
1024219529
@ -256,7 +256,7 @@ or
|
|||||||
htmx.off("click", myEventListener);
|
htmx.off("click", myEventListener);
|
||||||
|
|
||||||
// remove this click listener from the given div
|
// remove this click listener from the given div
|
||||||
var allParagraphsInMyDiv = htmx.off(htmx.find("#my-div"), "click", myEventListener)
|
var allParagraphsInMyDiv = htmx.off("#my-div", "click", myEventListener)
|
||||||
```
|
```
|
||||||
|
|
||||||
### <a name="on"></a> Method - [`htmx.on()`](#on)
|
### <a name="on"></a> Method - [`htmx.on()`](#on)
|
||||||
@ -281,7 +281,7 @@ or
|
|||||||
var myEventListener = htmx.on("click", function(evt){ console.log(evt); });
|
var myEventListener = htmx.on("click", function(evt){ console.log(evt); });
|
||||||
|
|
||||||
// add a click listener to the given div
|
// add a click listener to the given div
|
||||||
var myEventListener = htmx.on(htmx.find("#my-div"), "click", function(evt){ console.log(evt); });
|
var myEventListener = htmx.on("#my-div", "click", function(evt){ console.log(evt); });
|
||||||
```
|
```
|
||||||
|
|
||||||
### <a name="onLoad"></a> Method - [`htmx.onLoad()`](#onLoad)
|
### <a name="onLoad"></a> Method - [`htmx.onLoad()`](#onLoad)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user