jeditable live()

天大地大妈咪最大 提交于 2020-01-16 03:52:07

问题


When using live() and clicking text box while in edit mode the box expands as if the editable was binding each time you hover over it..how do you fix it? thanks

$('.edit').live('click', function(){
    $('.edit').editable('folder_edit.php', {
        style: 'padding: 1px 2px 1px 3px',
        style: 'font-size: 12px',
        style: 'background-color: #ffffaa'
    });
});

回答1:


I'm pretty sure you could have also done something like...

$('.edit').live('click', function(){
    $(this).editable('folder_edit.php', {



回答2:


I fixed it chaging the class name to something else ie: $('.edit').live('click', function(){

to

$('.editme').live('click', function(){



来源:https://stackoverflow.com/questions/4343109/jeditable-live

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