Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions www/src/content/extensions/06-hx-live.md
Original file line number Diff line number Diff line change
Expand Up @@ -708,8 +708,8 @@ Read and write `data-*` attributes as JSON or plain text.

```js
data.count // nearest data-count, starting at this
q(this).data.count // data-count on this element only
q('#cart').data.count // data-count on the selected cart
local.data.count // data-count on this element only
q('#cart').data.count // nearest data-count, starting at #cart
q('#cart').closest.data.count // nearest data-count from #cart up
```

Expand Down
Loading