Jquery 手持设备中的虚拟键盘

Jquery 手持设备中的虚拟键盘,jquery,html,jquery-ui,handsontable,Jquery,Html,Jquery Ui,Handsontable,我需要在单个应用程序中为不同的单元格使用数字和字符键盘。我使用jquery键盘js来实现这一点。我能够通过布局(numc,qwertyc),但无法更改布局。整个应用程序基于html和js afterSelectionEnd: function(instance, col, row, td) { //alert(col) var n='numc'; //qwerty //if(col==0 || col==4){ if(col==1){ n='qwe

我需要在单个应用程序中为不同的单元格使用数字和字符键盘。我使用jquery键盘js来实现这一点。我能够通过布局(numc,qwertyc),但无法更改布局。整个应用程序基于html和js

afterSelectionEnd: function(instance, col, row, td) {
    //alert(col)
    var n='numc'; //qwerty
    //if(col==0 || col==4){
    if(col==1){
        n='qwertyc';
    }
    this.getActiveEditor().beginEditing();
    keyboardNum(n);       
}, 

function keyboardNum(layouts) { 
    var kb,
    $input = $(':focus');
    if ($input.length) {
        lastInput = $input;
        // close the last keyboard
        kb = lastInput.getkeyboard();

        if (kb) {
            kb.close(true);
        }
        //alert(kb);
        if (!$input.hasClass('.ui-keyboard-input')) {
            $input.keyboard({
                usePreview: false,
                initialFocus: false,
                layout: layouts
            });
        }
        $input.getkeyboard().reveal();
    }
}

请提供一个最小、完整且可验证的示例:另外,请澄清您使用的键盘脚本?或