Why not working? Solved | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
13th Aug 2018, 5:48 PM
B.D
B.D - avatar
2 Answers
+ 3
thank you very much
14th Aug 2018, 8:59 AM
B.D
B.D - avatar
+ 1
It seems like the html element hasn't loaded when the function tries to access the element. This looks like a failure of sololearn as the js should always be implemented at the end of the file. Move all the code from the js section to your script tag in the html section. Also you have to change the position of the button to relative as top/Left Properity dont work on static elements. Then it works. Nice Idea :)
13th Aug 2018, 9:56 PM
lechickenburGER
lechickenburGER - avatar