logo       

[jQuery] Re: call ajax on ENTER key press: msg#02885

jQuery

Subject: [jQuery] Re: call ajax on ENTER key press


> $(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

Google Custom Search

News | Mail Home | sitemap | FAQ | advertise