<form>
<select ... hx-post="/foo" hx-target="#data-table">
...
<select ... hx-post="/foo" hx-target="#data-table">
</form>
From twitter:
Alright, happy to announce htmx 0.0.5:
https://htmx.org/posts/2020-6-19-htmx-0.0.5-is-released/
and the shiny, new and almost certainly completely broken hyperscript 0.0.1-alpha2:
Uncaught TypeError: htmx.processNode is not a function
at HTMLDocument.<anonymous> (posttest?Message=abc:51)
at Object.e.dispatch (turbolinks.min.js:9)
at r.notifyApplicationAfterPageLoad (turbolinks.min.js:10)
at r.pageLoaded (turbolinks.min.js:10)
at turbolinks.min.js:9
(anonymous) @ posttest?Message=abc:51
e.dispatch @ turbolinks.min.js:9
r.notifyApplicationAfterPageLoad @ turbolinks.min.js:10
r.pageLoaded @ turbolinks.min.js:10
(anonymous) @ turbolinks.min.js:9
//====================================================================
// Initialization
//====================================================================
function ready(fn) {
// if (getDocument().readyState !== 'loading') {
// fn();
// } else {
// getDocument().addEventListener('DOMContentLoaded', fn);
// }
document.addEventListener('turbolinks:load', () => {
fn();
});
}