I am trying to add buttons to the top of the form and have this code:
To make it work properly, you need to wrap your code in a “document ready” function. This function will wait for the HTML DOM to load before executing the code.
Here’s how you can do it:
// executes when HTML-Document is loaded and DOM is ready
Give it a try, and let me know how that goes!
Thanks Faisal! That worked! I figured it was something simple I was missing.