bigskysoftware / bigskysoftware/htmx

Fetch hx-vals programatically

Open
#2,717 2 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
49.4k
Forks
1.7k
Avg merge
3d 22h
Merged PRs (30d)
30

Description

I want to make an AJAX request from JS using some data from a server which is already in HTML in the `hx-vals` attribute.

There seems to be an internal API function [getExpressionVars](https://github.com/bigskysoftware/htmx/blob/89b9e2afa5fbc62ab7a22292e84f41d7da25447e/src/htmx.js#L3784) for this purpose. It could be convenient to make it public.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.