hx-include and <tbody><tr><td> #2059
Answered
by
Telroshan
PorcoRosso85
asked this question in
Q&A
-
Hi, folks!! This works well
How to make this work well?
|
Beta Was this translation helpful? Give feedback.
Answered by
Telroshan
Nov 30, 2023
Replies: 1 comment 1 reply
-
Hey, what do you mean by "not working" exactly?
Hope this helps! |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
PorcoRosso85
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey, what do you mean by "not working" exactly?
I set up a JSFiddle with the code you provided above, and this one with the second hx-include syntax you mentioned (i.e.
closest tr
).hx-post
on your button like in the first code sample, the button wasn't doing anything on click (which is perfectly normal as it isn't told what request to do at all)hx-post
than your first code sample's button, you can see how the request is correctly made and properly includes the values of the other inputs in your browser's network tabHope this helps!