I’m not trying to make any big changes, just add / remove css classes once a form has been submitted, and once the response comes back from the server to display the confirmation message.
Example - forms loaded on a website via the automatic script tag
Form loads - add css class to form
Form submitted - add / remove css classes
Form confirmation/server response - add / remove css classes
Any advice would be appreciated.