r/code • • Sep 17 '23

Javascript Question about slide form

I execude this code but the output when i click the sign in button it doesn't worked, can i know why and how to fix it, Thank you

3 Upvotes

11 comments sorted by

View all comments

Show parent comment

1

u/ManojTGN Coder Sep 19 '23

It really depends on your js code. if you are accessing the element in the html immediately with the js code then you should place your code in the bottom of the body tag.

note:
- always check console logs
- learn about defer & async

1

u/Maleficent-Carry4355 Sep 19 '23

It was fixed !!!!!!!!!!!

Thank you for your help

Very thank you !!!!!!!!!!!!!

THANK YOU FOR YOUR REPLY AND SORRY FOR ASKING SOME STUMB QUESTION TO YOU

THANK YOU!!!!!!!