This has got to be something simple. I searched the internet and only found syntax errors as the cause of this problem, but I can\'t find a syntax error.
hi is not a global function. You can access it only inside the scope of your function(){...}, not from outside.
Since you are using jQuery, you can change the way you bind your function to the onChange event. Rather than calling it from the html tag, you can write: