Update HTML field when page or form loads

By: Henry King | Asked: 09/23/2022
ForumsCategory: General questionsUpdate HTML field when page or form loads
Henry King asked 2 years ago
Hi
I would like to update a HTML field based which will display the result of calculations done when the form is first loaded.
How can it be achieved? If I need to use hook, please advise which hook is suitable.
Thanks.
1 Answers
Best Answer
Rob LeVineRob LeVine answered 2 years ago
That's a perfect opportunity for jQuery using $(document).ready(function() {} and setting the value of the HTML field in there.
Henry King replied 2 years ago

Thanks.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right