user
12/05/2021, 4:47 PMuser
12/05/2021, 4:47 PMwooden-activity-99794
12/05/2021, 6:06 PMbumpy-restaurant-49094
12/06/2021, 8:47 AMbumpy-restaurant-49094
12/06/2021, 8:47 AMbitter-dog-98292
12/06/2021, 8:57 AMhappy-jackal-70014
12/06/2021, 9:02 AMgorgeous-airport-54386
12/06/2021, 9:39 AMon change from #field1
show when #field1's value is 'two'colossal-glass-79762
12/06/2021, 9:49 AMhtml
<select id="field1">
<option> one </option>
<option> two </option>
</select>
<input _="on change from #field1
show when #field1's value is 'two'">colossal-glass-79762
12/06/2021, 9:51 AMbig-airline-13935
12/06/2021, 10:03 AMlate-king-98305
12/06/2021, 1:40 PMmysterious-toddler-20573
12/06/2021, 3:41 PMgorgeous-airport-54386
12/06/2021, 8:05 PMenough-grass-99356
12/07/2021, 7:14 AMhx-vals attribute of each element.
How do I 'catch' the parameter inside the hx-trigger, so I can include it in the hx-vals?...or is there a better way to do this?colossal-glass-79762
12/07/2021, 8:47 AMhx-vals='js:{param: global.variable}'
To be honest it feels kinda hackish but it works. I've often thought that there might be a way to make it less hackish using hyperscript but I haven tried it yetenough-grass-99356
12/07/2021, 8:49 AMcolossal-glass-79762
12/07/2021, 8:53 AMnarrow-room-51024
12/07/2021, 3:19 PMmysterious-toddler-20573
12/07/2021, 3:42 PMnarrow-room-51024
12/07/2021, 5:09 PMmysterious-toddler-20573
12/07/2021, 5:20 PMnarrow-room-51024
12/07/2021, 5:23 PMnarrow-room-51024
12/07/2021, 5:30 PMlate-king-98305
12/07/2021, 9:43 PMlate-king-98305
12/07/2021, 9:44 PMlate-king-98305
12/07/2021, 9:44 PMlate-king-98305
12/07/2021, 9:45 PMstocky-dentist-80693
12/07/2021, 10:28 PM