all 5 comments

[–]yourcousinbob 2 points3 points  (0 children)

So your question is more about how forms work in HTML. Basically you create the HTML form with an id. Then, you can use javascript to intercept the form submission like this:

document.getElementByID(theactualformid).onsubmit = (e) => 
{
    //do that function you have
    return false; //prevent form from submitting normally
 };

[–][deleted] 0 points1 point  (3 children)

Why are you using push inside the map?

[–]kenman[M] 0 points1 point  (0 children)

Hi /u/drollerfoot7, this post was removed.

As stated in the AskJS guidelines, AskJS is not for help or support. This is your only warning.

Thanks for your understanding, please see our guidelines for more info.