> $(document).ready(function() { > $('#movie_name').keyup(function(e) { > if(e.keyCode == 13) { > //your code > }
Is it good with explorer too? Isn't the following one a more compatible way? $(document).ready(function() { $('#movie_name').keyup(function(e) { if(!e) e = window.event; if(e.keyCode == 13) { //your code } Thanks for attention