Remove specific box with jquery
Posted
by
Opoe
on Stack Overflow
See other posts from Stack Overflow
or by Opoe
Published on 2011-01-09T13:49:42Z
Indexed on
2011/01/09
13:53 UTC
Read the original article
Hit count: 190
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/
© Stack Overflow or respective owner