You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<divid="showIt"><!-- --></div><buttonid="someId"
style="margin-bottom: 1rem;"
hx-get="/my-app/stuff"
hx-target="#showIt">
Show it
</button>
/my-app/stuff returns this HTML:
<buttonhx-on="click: alert('ikk')">Close</button>
This works exactly like I want the first time I click on the button with id someId. But the second time, I essentially just want the second button to be re-rendered again. But instead, I see two buttons next to each other with the text "Close" and I get an error with HTMX:
The text was updated successfully, but these errors were encountered:
I have this piece of html:
/my-app/stuff
returns this HTML:This works exactly like I want the first time I click on the button with id someId. But the second time, I essentially just want the second button to be re-rendered again. But instead, I see two buttons next to each other with the text "Close" and I get an error with HTMX:
The text was updated successfully, but these errors were encountered: