htmx/www/attributes/hx-prompt.md
Jonathan Adly 1ff3886de8
Update hx-prompt.md
Fixed typo
2021-11-05 14:43:28 -04:00

463 B

layout title
layout.njk </> htmx - hx-prompt

hx-prompt

The hx-prompt attribute allows you to show a prompt before issuing a request. The value of the prompt will be included in the request in the HX-Prompt header.

Here is an example:

<button hx-delete="/account" hx-prompt="Enter your account name to confirm deletion">
  Delete My Account
</button>

Notes

  • hx-prompt is inherited and can be placed on a parent element