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
jrdnxr
jrdnxr2y ago
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.
Revan
Revan2y ago
thanks its working after that
jrdnxr
jrdnxr2y ago
Glad to hear it!
Want results from more Discord servers?
Add your server
More Posts