可编辑不工作在IE,但在FF, Chrome工作


Jeditable not working in IE, but works in FF, Chrome

我有一个表:

<td class='editable' id='<?=data['id']?>' col='<?=data['col_name']?>'>Content</td>

$data$querymysql_fetch_assoc,当我点击<td>时,可编辑插件在FF或Chrome中激活,但在IE中不起作用。

$(function () {
    $(".editable").click(function (event) {
        $(this).editable('ajax_save.php',{
            id          : 'id',
            name        : $(this).attr('col'),
            submit      : 'Save',
            cancel      : 'Cancel',
            tooltip     : ''
        });
    });
});

我不明白为什么会这样,你能帮我一下吗?

谢谢

似乎不是所有的选项都能在IE 7/8上工作…

$(document).ready(function() {
    $(".editable").editable("ajax.php",{
        type: "text"
    });
});

,这没什么
$(document).ready(function() {
    $(".editable").editable("ajax.php",{
        type: "text", submit:"OK",cancel:"Cancel"
    });
});

问Mika Tuupola关于这个,也许是jquery或jeditable处理td元素的方式有问题,在div中包装信息会产生额外的DOM,影响性能,如果我们处理巨大的报告

相关文章: