Add a class to a DIV after submission?

Joe Cook created the topic: Add a class to a DIV after submission?

I have a contact form on a div that's tucked off the screen. When they want to fill it out, a class is added via js and it slides on the screen. It pulls up custom text after submission. The problem is after they submit the form and the page refreshes the content, that div defaults back to off screen and they don't see that custom text unless they click the button again. Is there a way, maybe in the function before_reset() javascript, I can make sure that div has the class afterward?

#67262
The topic has been locked.

Agapi G. replied the topic: Add a class to a DIV after submission?

Hello Joe! Thank you for your inquiry!

Kindly note, that Form Maker cannot handle this action, but here's what you can do. The page reloads after submission, so you can write a Javascript code, that opens this dive after the page is reloaded.

If you don't want this div to always be opened, the users which come from a different path or URL, will not see the form div unless they click its trigger button.

Thank you! Have a wonderful day!


Kind regards,
Agapi G.
Web-Dorado team
#67564
The topic has been locked.

Time to create page: 0.147 seconds
Powered by Kunena Forum

WORLD-CLASS SUPPORT

We are here for you every step of the way. Turn to our support with any questions you might have about our products and services. Our experienced customer care team is available to help you as fast as we possibly can.

Contact us