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
The previous input not work in above include attribute, it not includes the hidden input elements which above it,
and cause university:marked set to false is not available when user uncheck the checkbox.
It not work if i move hidden input after the checkbox input, and use next input too.
But, if use #id selector instead, it work as expected as following code:
Hey, unfortunately it's indeed a weakness of our extended selectors syntax at the moment. It's only handled if it's the only selector, i.e:
previous input will work
But div, previous input won't, and will simply result in a document.querySelectorAll("div, previous input"), which of course won't retrieve the element you're looking for
That's a weakness we'll have to fix in the future, and for now you may indeed use this ID workaround (or any standard CSS selector) that you already found out!
Plese check following example, there are two input element which has same name.
The
previous input
not work in above include attribute, it not includes the hidden input elements which above it,and cause
university:marked set to false
is not available when user uncheck the checkbox.It not work if i move hidden input after the checkbox input, and use
next input
too.But, if use
#id
selector instead, it work as expected as following code:** Version
htmx 1.9.12
hyperscript 0.9.12
Thanks
The text was updated successfully, but these errors were encountered: