user
04/24/2021, 3:56 PMgorgeous-ghost-95789
04/24/2021, 3:57 PMuser
04/24/2021, 3:57 PMgorgeous-ghost-95789
04/24/2021, 3:58 PMuser
04/24/2021, 4:04 PMgentle-dream-18175
04/24/2021, 8:33 PMgentle-dream-18175
04/24/2021, 8:34 PMrefined-ice-80461
04/24/2021, 11:57 PMmysterious-toddler-20573
04/25/2021, 12:48 AMgorgeous-ghost-95789
04/25/2021, 12:48 AMmysterious-toddler-20573
04/25/2021, 12:48 AMgorgeous-ghost-95789
04/25/2021, 12:49 AMgorgeous-ghost-95789
04/25/2021, 12:50 AMgorgeous-ghost-95789
04/25/2021, 12:52 AMnarrow-room-51024
04/25/2021, 1:55 AMgorgeous-ghost-95789
04/25/2021, 1:56 AMelegant-raincoat-69176
04/25/2021, 4:53 AMadamant-exabyte-92636
04/25/2021, 6:14 AMuser
04/25/2021, 11:34 AMsquare-printer-19203
04/25/2021, 1:13 PM<form id="quote-word-{{.Id}}" hx-swap-oob="true" style="display: inline" hx-ws="send:submit" hx-trigger="click"><input name="toggle_word" type="hidden" value="{{.Id}}" />{{.DisplayText}}</form> Thank you ❤️most-jelly-15242
04/25/2021, 1:38 PMsquare-printer-19203
04/25/2021, 1:51 PMgorgeous-ghost-95789
04/25/2021, 2:32 PMhx-trigger header to your response, and it will trigger your event on the page. You can add event handlers in plain JS (or hyperscript, if you’re daring)blue-manchester-57655
04/25/2021, 3:49 PM<tr hx-target="this" hx-swap="outerHTML">
<td class="border-0" scope="row">
<div class="form-row mb-3">
<div class="col">
Task name: <b>Chips</b>
</div>
<div class="col">
<input class="form-check-input" type="checkbox" value="" id="checkboxIsDone" disabled >
<label class="form-check-label" for="checkboxIsDone">
Task is done
</label>
</div>
<div class="col">
<div class="row">
<button hx-get="/task/16/edit/" class="btn btn-primary btn-sm">
Edit
</button>
<form class="ml-2">
<input type="hidden" name="csrfmiddlewaretoken" value="5PUVnRniyvevRbJyTdaMgRhubypTBHJmWgXfiMUx890Q2C8T838gfcflo8hnjKq9">
<button class="btn btn-danger btn-sm" hx-post="/task/16/delete/" hx-confirm="Are you sure?">
Delete
</button>
</form>
</div>
</div>
</div>
</td>
<tr>
But an extra empty tag was appended after it:
<tr class=""></tr>
I wonder if this could be a BootStrap thing 🤔
Anyway, thanks for the tips. I'll keep digging.blue-manchester-57655
04/25/2021, 3:49 PMblue-manchester-57655
04/25/2021, 3:50 PMblue-manchester-57655
04/25/2021, 3:50 PMadamant-exabyte-92636
04/25/2021, 3:52 PM