Save Wizard on clicking next button with alpineClickHandler
I have a question with limited resources online. I want to auto-save responses after a step in a Wizard. From Dan's comment under this video, I learned that AlpineJS can trigger an existing action or javascript.
1. How can I log something to the console or show an alert on clicking "Next"? 2. How can I auto-save responses while using AlpineJS to trigger actions?