Why is this simple code working on JSFiddle but not on my server?

john5505

New Member
I have the following code that I am trying to get working. For some reason it works fine on JSFiddle, but nothing happens when I type in the text box when the code is being served up from my server. Why might that be?\[code\]<!DOCTYPE html><html><head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.js"></script> <script type="text/javascript"> $('#userInput').keyup(function(){ alert("key up"); }); </script></head><body> <input id="userInput" type="text"></body></html>\[/code\]
 
Back
Top