Thanks in advance for the help:
This function works fine in dropping in the div from the first click function, but WILL NOT acknowledge the second click function in any capacity whatsoever.
I can even activate the first click function as many times as I want.
What am I missing? I'm ripping my hair out over this.
$('span[rel="confirm"]').click( function() {
$('.confirmbox').remove();
targetpath = $(this).attr("targetpath");
dbid = $(this).attr("dbid");
$(this).after('<div><span class="closeout">X</span>   Are you sure you want to <a href="index.php?cmd=deletesample&id=' + dbid + '&filetarget=' + targetpath + '">delete?</a></div>');
$('.confirmbox').show(200);
});
$('.closeout').click( function() {
$('.confirmbox').css('background-color', 'green');
});