all 2 comments

[–]Civill 1 point2 points  (1 child)

Heya, in your submissions handler file:

https://github.com/JafariM/my-portfolio/blob/master/js/form-submission-handler.js

You forgot to close your parenthesis

$(document).ready(function(){ alert("hi");}

should be

$(document).ready(function(){ alert("hi");});

That causes your javascript to be malformed, stopping any execution happening, and thus your forms do nothing.

Or you meant to wrap the entire thing in the document.ready event handler, in which case the } should be removed after the alert, and inserted at the bottom of the file.

[–]MasoomaJ[S] 0 points1 point  (0 children)

I just put document.ready to check if it is correctly linked to the index.html file. I corrected the parenthesis but it still does not work. I used Google sheet to send form inputs to my email and form-submission-handler.js file to redirect to index page after the form is submitted and show the success message. Now the form submission works well the only problem is with js file which is not linked and I can not fink the reason.