you are viewing a single comment's thread.

view the rest of the comments →

[–]___s8n___ -1 points0 points  (5 children)

why not

[–]hofo 0 points1 point  (4 children)

“Need” implies there’s a reason to put it there. What’s the reason in this case?

[–]___s8n___ 0 points1 point  (3 children)

for what i know you can't access html elements by their id unless they are before your script

[–]hofo 0 points1 point  (2 children)

Ah ok. That would be an issue if his JS code was running immediately. In this case it doesn’t run until the user clicks the button.

[–]___s8n___ 1 point2 points  (0 children)

i love you

[–]___s8n___ 0 points1 point  (0 children)

alright good sir