Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

you'd use hyperscript for something client side like that:

on click set @src to "https://whatever.com/cat.gif"

the htmx approach would be to replace the image tag entirely



Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: