Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Hierdie gesprek is in die argief. Vra asseblief 'n nuwe vraag as jy hulp nodig het.

Why your browser doesn't work press enter key in textboxs.

  • 2 antwoorde
  • 4 hierdie probleem
  • 1 view
  • Laaste antwoord deur cor-el

more options

$('#txtIlcArama').keydown(function () {

  if (event.keyCode == 13) { 
     GetUrunler(0, 0); 
  } 

});

event.keyCode working all browser but it isn't working at your browser.

$('#txtIlcArama').keydown(function () { if (event.keyCode == 13) { GetUrunler(0, 0); } }); event.keyCode working all browser but it isn't working at your browser.

Gekose oplossing

Does it help if you include the event parameter?

$('#txtIlcArama').keydown(function (event) { 
   if (event.keyCode == 13) { 
      GetUrunler(0, 0); 
   } 
});
Lees dié antwoord in konteks 👍 1

All Replies (2)

more options

I am sorry to hear that the code is not working. Please first consider checking out stackoverflow.com for this question since it required developer knowledge.

more options

Gekose oplossing

Does it help if you include the event parameter?

$('#txtIlcArama').keydown(function (event) { 
   if (event.keyCode == 13) { 
      GetUrunler(0, 0); 
   } 
});