Just leave hx-trigger=“click” - that’s explicit and unambiguous 🙂 and it’s exactly how it is demonstrated in the first htmx docs page.
Also, try just returning Httpresppnse(‘1’) or something. And verify you get a response on the dev tools network tab.