I have the following code:
$(this).children("a:eq(0)").append('<img src="'+ (arrowsvar.down[1]) +'" class="' + (arrowsvar.down[0]) + '" style="border:0;" />' );
Now I want to remove last appended element (an image). Please give suggestions.
As an alternative, for those who likes more programmatic ways and syntax:
$('#container-element img').last().remove();
2.1m questions
2.1m answers
60 comments
57.0k users