箭头键在内容中不起作用可编辑

Arrow Keys not Working inside the contentEditable

本文关键字:不起作用 编辑      更新时间:2023-09-26

箭头键不起作用。

.HTML:

<td contenteditable="true" onBlur="saveToDatabase(this,'model_number','357')" onClick="showEdit(this);"></td>

JQUERY:

function saveToDatabase(editableObj, column, id) {
    $(editableObj).css("background", "#FFF url(loaderIcon.gif) no-repeat right");
    $.ajax({
        url: "edit_product.php",
        type: "POST",
        data: 'column=' + column + '&editval=' + editableObj.innerHTML + '&id=' + id,
        success: function(data) {
            $(editableObj).css("background", "#FDFDFD");
        }
    });
}
function showEdit(editableObj) {
    $(editableObj).css("background", "#FFF");
}

帮我这个。提前致谢:)

请欺骗您包含任何 jquery 滚动插件的天气。如果您包含任何插件,请将其删除并尝试。