搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

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

  • 2 回覆
  • 4 有這個問題
  • 15 次檢視
  • 最近回覆由 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.

被選擇的解決方法

Does it help if you include the event parameter?

$('#txtIlcArama').keydown(function (event) { 
   if (event.keyCode == 13) { 
      GetUrunler(0, 0); 
   } 
});
從原來的回覆中察看解決方案 👍 1

所有回覆 (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

選擇的解決方法

Does it help if you include the event parameter?

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