I want to create a new div tag via
$(this).prepend("<div class='test_close'></div>");
and onclick it should close
$(function() {
$(".test_close").click(function() {
console.log("clicked");
$(this).remove();
});
});
but it doesn't work for me...
do you have an idea how i can do this?
thanks in advance and sorry for my bad english