Remove specific box with jquery
- by Opoe
Hi all,
When you click Add a box. It adds a box with a deletlistbtn.
Right now it removes all boxes with the same name/class/var.
But i want the button to only delete the box/list its in.
Can anyone tell me wich code i should use to accomplish that?
Right now i use this code;
$('.deletelistbtn').live('click', function() {
$(redbox).remove();
});
this is my entire code http://jsfiddle.net/XsCAN/