开发者

jeditable live()

When using live() and clicking text box while in edit mode the b开发者_JS百科ox 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'
    });
});


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

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


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

to

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜