diff --git a/www/attributes/hx-vals.md b/www/attributes/hx-vals.md index cce8fc6f..238f86b7 100644 --- a/www/attributes/hx-vals.md +++ b/www/attributes/hx-vals.md @@ -18,6 +18,14 @@ If you wish for `hx-vals` to *evaluate* the values given, you can prefix the val
Get Some HTML, Including a Dynamic Value from Javascript in the Request
``` +When using evaluated code you can access the `event` object. This example includes the value of the last typed key within the input. + +```html +
+ +
+``` + ### Security Considerations * By default, the value of `hx-vals` must be valid [JSON](https://developer.mozilla.org/en-US/docs/Glossary/JSON).