How do you call function from a JS file in HTML?
I'm trying to call a form validate function from my js file but my html file says not function exists even though i connected the js and html file together and another function i made is working just fine on the html page.
3 Replies
Hi there. I may have a solution, in case you haven't solved this quite yet.
Try moving the <script src> file to the bottom of your HTML file. Place it in between the <footer></footer> tags. It should connect and function like normal now. Please lmk if that doesn't solve it.
thanks its working after that
Glad to hear it!