From df971a3667586310e0e80415f46d8a2d90b3f1a7 Mon Sep 17 00:00:00 2001 From: nyash Date: Fri, 14 Aug 2020 16:43:27 +0200 Subject: [PATCH] update hx-target docs --- www/attributes/hx-target.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/www/attributes/hx-target.md b/www/attributes/hx-target.md index dee4398e..1bec723b 100644 --- a/www/attributes/hx-target.md +++ b/www/attributes/hx-target.md @@ -12,6 +12,8 @@ request. The value of this attribute can be: * `this` which indicates that the element that the `hx-target` attribute is on is the target * `closest ` which will find the closest parent ancestor that matches the given CSS selector. (e.g. `closest tr` will target the closest table row to the element) + * `find ` which will find the first child descendant element that matches the given CSS selector. + (e.g `find tr` will target the first child descendant row to the element) Here is an example that targets a div: