How to select ALL children (in any level) from a parent in jQuery?

后端 未结 3 1079
盖世英雄少女心
盖世英雄少女心 2020-12-14 05:21

I have to .unbind() all elements from a parent node.

How can I select all children (at any level) from a parent?

Tried :

$(\'#go         


        
3条回答
  •  执念已碎
    2020-12-14 06:09

    I think you could do:

    $('#google_translate_element').find('*').each(function(){
        $(this).unbind('click');
    });
    

    but it would cause a lot of overhead

提交回复
热议问题