Javascript – I can not delete the div

After continuing to improve the script ( right here ) and having added the function:

this.parentElement.style.display = no;

To clear the parent div (including div subtraction), I had a problem:

Subtract

And I see that I do not use the style.display = "none", for what I want at last, because I tried with empty () and with remove (), but that does not work either.

Subtract
Subtract

How can I delete the parent div by clicking "subtract" and without using this.parentElement.style.display = no;…?

I've tried this, but it does not work either and I do not like it either, because if I have several different "parents" (too many ids), the script is endless …

Subtract
$ (document) .ready (function () { $ ("subtract"). click (function (event) { $ ("# parent"). remove (); }); });