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
solved How to get div’s selector using this
 
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
solved How to get div’s selector using this