Inside
- $(document).on('click'
, '.remove_group' , function(){
-
// you should be able to now.
-
});
you get a magic variable
called this. It is the <a> of the remove_group.
$(this).parent() is
<div id=vito>
$(this).parent().parent()
is your groupid div, so you can remove it
- $(document).on('click'
, '.remove_group' , function(){
-
$(this).parent().parent().remove()
-
});
JΛ̊KE