but as you can see in that code when I click on dynamically added delete button .it only delete that
clicked delete button other content of that added div is not getting deleted .
How to delete that child div completely from parent div while clicking on child div’s delete button?
You’re wanting to delete more than just the td that contains the delete button. You want to delete the “emp_block_data” element that contains the delete button. You can easily do that with: