Movatterモバイル変換


[0]ホーム

URL:


</> htmx

hx-confirm

Thehx-confirm attribute allows you to confirm an action before issuing a request. This can be usefulin cases where the action is destructive and you want to ensure that the user really wants to do it.

Here is an example:

<buttonhx-delete="/account"hx-confirm="Are you sure you wish to delete your account?">  Delete My Account</button>

Event details

The event triggered byhx-confirm contains additional properties in itsdetail:

Notes


[8]ページ先頭

©2009-2025 Movatter.jp