Checkbox is disappearing? #1937
Unanswered
rlitchfield-Edcara
asked this question in
Q&A
Replies: 1 comment
-
|
Hey, I may be off the mark but is is volontary to use What I think is happening: given that no Cf the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
First...thank you for such an amazing tool, HTMX is great!!
For context, when a checkbox is checked, I want to remove the value from the propulsion_total number. When I remove the check, I want to add the number back onto the propulsion_total number. As each checkbox will have a different value, the value is sent to a Flask server, and the server returns the new value. That works as expected. I am doing the calculation on the server for a specific reason that I won't get into here.
I am using a hidden input as well because when a checkbox is first checked, it triggers the server, but sends no actual data so I have no idea the value or which checkbox is sending the information.
This works as I expect, except there is an issue, the checkbox disappears after I update the power_remaining value. Using the browser's dev tools everything between the form tags disappears.
Any suggestions?
Also posted on the Discord server as per recommendation. :)
Robert
Beta Was this translation helpful? Give feedback.
All reactions