Javascript cannot be loaded in another html file

Javascript cannot be loaded in another html file

Hello guys, I'm new at using jquery. And now I'm facing a problem.
Let me use picture to explain it.

Why are
<span id="id_1"></span>
<span id="id_2"></span>
<span id="id_3"></span>
cannot be loaded in display.html?

and here is display.html

as you know that I got that input field from input button at the sidebar.

Somebody help me. Thank you.