OK, so I want to add the elements with class "selected" to a div with class "zusammenfassung".
This code works:
$(".abschicken").click(function() {
$("#ServicePortal ul li").each(function(){
if ($(this).hasClass("selected")) {
$('.zusammenfassung').append(this);
}
});
});
except, it deletes the original divs with the class "selected". Is this normal with the append-function? And what can I do about it?
Thanks for any help.