I give up, cant seem to solve this issue with a simple items list

Simple list, this list will do two simple functions:

-clicking on an X will delete its line (DONE)
-when the last item is removed, the button div should be automatically hidden/removed also. (DOESNT WORK YET)

Here is the full working code and demo, you can edit and post it back if you want:


UPDATE: Finally got it to work!! Feel free to use the code for your own purposes :slight_smile:

UPDATED URL: http://jsfiddle.net/vazqjose/pvUNA/2/