[Solved] How to add javascript to HTML?
There are two problems: You need to include a reference to JQuery. The <script> requires #textbox in the DOM for it to subscribe to keyup event. Hence the script should be placed at the end of the body. This way #textbox is added to DOM by the time the script runs. <script src=”https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js”></script> <head></head> <body> … Read more