[jQuery] get an element if, append it to another element.
Hi,
Beginner here :)
Here's what I'm trying to do:
catch the id of an element, append it to another element so it gets
displayed on the page.
$(".test").click(function() {
$("this.id").appendTo("#ids");
});
<p id="ids">
<div class="test" id="1"></div>
Any help would be appreciated.
Regards.
-jj.