[Solved] How to get div’s selector using this
[ad_1] If you want to get parent’s id: myFunction(){ $(this).parent(‘div’).attr(‘id’); } Drop .attr(‘id’) if you need to get the div itself: myFunction(){ $(this).parent(‘div’); } 0 [ad_2] solved How to get div’s selector using this