I have an html form that gets rendered from JS that im struggling to add a loading spinner to.
The html is rendered from JS. The JS was handed down to me to use.
This is the submit method. Im trying to show a page spinner when the its clicked on.

JS file attached.
my-form.js
There are a number of js spinners you could try from the js end
HTML
Open in new window
CSS
Open in new window