I wrote the keyup event in an external js file and it's referenced in the html file.
$('input[name=restaurant]').keyup(function(event){
console.log("keyup");
});
The strange thing is that it won't activate unless I include it in document ready function.
$(document).ready(function(){
$('input[name=restaurant]').keyup(function(event){
console.log("keyup");
});
});
The keyup event worked just fine outside of document ready function before. I don't know what the problem is now.