Post

Funny story I keep hitting this "I want to select elements where attr starts with *prefix*" Eg. Detect HTMX I need hx-* or data-hx-*

Hugo@codewithhugo.com

Yeah so I didn't want to borrow the v-bind/x-bind shorthand because I explicitly am not doing a reactive binding Re why it's `data-s-attr="attrName=contextValue"` 1. The querySelectorAll is simpler (select for data-s-attr), I'm not even sure how I would use querySelect for "attrs starting with :"

0 reposts0 likes

No replies yet.