When you submit a subscription form through our PHP wrapper (Ajax), we include some JavaScript that updates the DOM with a result message (IE: "Contact added," "Contact updated," etc). I added a class to the message div in the DOM based on success or failure with the Ajax call. This way developers can style the inline response message based on success or failure.
When you submit a subscription form through our PHP wrapper (Ajax), we include some JavaScript that updates the DOM with a result message (IE: "Contact added," "Contact updated," etc). I added a class to the message div in the DOM based on success or failure with the Ajax call. This way developers can style the inline response message based on success or failure.