Trigger buttons works just once

人盡茶涼 提交于 2020-01-06 11:48:32

问题


I'm working on a simple Samsung smart TV application,, so i added buttons and fired them by clicking (ENTER) on the remote control... the first button worked at the first click BUT at the second click all the buttons stopped!!!!! SO whats the problem!! i'll appreciate any suggestion..thank you!! this is my codes...

javascript code:

    case tvKey.KEY_ENTER:
    case tvKey.KEY_PANEL_ENTER:
    $('.modalDialog').html("Blablablah");
        alert("ENTER");
        alert($(this).html());
        break;

html code:

  <div class= "hello" >
<a href="#openModal"  onkeydown="Main.keyDown();">A</a></div>

  <div class= "hello" >
<a href="#openModal"  onkeydown="Main.keyDown();">B</a></div>

  <div class= "hello" >
<a href="#openModal"  onkeydown="Main.keyDown();">C</a></div>

来源:https://stackoverflow.com/questions/22709232/trigger-buttons-works-just-once

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!