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();