Using .one() with .live() jQuery

前端 未结 6 2041
感动是毒
感动是毒 2020-12-09 04:32

I was using the live() function:

$(\'a.remove_item\').live(\'click\',function(e) {});

I needed to change this to one()

6条回答
  •  情话喂你
    2020-12-09 04:50

    I know this is an old post, but this worked for me on a similar case:

    $('a.remove_item').live('click', function(e) {
        e.stopPropagation();
        // Your code here
    });​
    

提交回复
热议问题