calm-postman-56357
09/25/2022, 3:21 PM<button
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
hx-post="{% url "listings:listing-favorite" listing.slug %}"
>
Some text
</button>
the post view returns some json like {"added": id} or {"removed": id}
I would like to toggle a class on the button if the response is {"added": id}.
Is it possible to do?