//设置下一个焦点
        function SetNextFocus(tb)
        {
            var rowsCount = document.getElementById("txtRowsCount").value;
 
            if(event.keyCode == 13)
            {
                if(rowsCount<10)
                {
                    var oldnum = tb.id.substr(17,1);
                    if(oldnum < rowsCount -1)
                    {
                        var newnum = parseInt(oldnum) + parseInt("1");
                        document.getElementById("rptMonthPlan_ctl0" + newnum + "_txtMark").focus();
                    }
                    if(oldnum==rowsCount-1)
                    {
                        document.getElementById("tdMyScore").focus();
                    }
             
                }
                else
                {
                    var oldnum = tb.id.substr(17,2);
                    if(oldnum < rowsCount)
                    {
                        var newnum = parseInt(oldnum) + parseInt("1");
                        document.getElementById("rptMonthPlan_ctl" + newnum + "_txtMark").focus();
                    }
                    if(oldnum==rowsCount-1)
                    {
                        document.getElementById("tdMyScore").focus();
                    }
                } 
            }
        }

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-31
  • 2021-11-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-01
  • 2022-12-23
  • 2022-02-06
  • 2022-12-23
  • 2021-09-12
  • 2021-07-19
相关资源
相似解决方案