开发者

jeditable live()

开发者 https://www.devze.com 2023-01-28 08:12 出处:网络
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?

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

精彩评论

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