I have the following script:
http://jsfiddle.net/oshirowanen/pALBV/
How do I make this more dynamic, so I do not have to manually specify the button clicks f
try this:
$(function() {
$(':button').click(function() {
$(this).closest('.container').fadeOut('slow', function() {
$(this).remove();
});
});
});
This works:
$(function() {
$('input[type="button"]').click(function() {
var container = $(this).parent().parent();
container.fadeOut('slow', function() {
container.remove();
});
});
});