-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hx-include - allow multiple extended selectors #2645
Comments
Relates to #1754 |
Please note this is the case for non-GET requests but most importantly for "isolated inputs", as a form's
Lines 3416 to 3419 in f9b3f88
The idea here is that if you make a non-GET As for
Which means any standard CSS selector matching multiple elements, will return those multiple elements. The exception here are the extended selectors that htmx provides ( The reason that Hope this helps! |
@Telroshan, thank you so much for the swift feedback, detailed info and all the help here. You are a 🦸 (hero 😊). I'm aware of the fact that this is for all but I was trying the following and as it uses the extended selector, this indeed does not work: I shall rename the issue to reflect this feature request. |
It would be really handy if
hx-include
could use multiple selectors, just likehx-trigger
.Reasoning:
<form>
element. This confused me as the html spec says that forms may not be nested.<form>
elements (to only submit a part for a partial update) but it is not allowed according to the spec and chrome does not support ithx-include
to only post the input fields nested inside a div. But in that case, I cannot include another input field that is not part of that div but global.The text was updated successfully, but these errors were encountered: