.append(), prepend(), .after() and .before()

See: .append() puts data inside an element at last index and .prepend() puts the prepending elem at first index suppose: <div class=”a”> //<—you want div c to append in this <div class=”b”>b</div> </div> when .append() executes it will look like this: $(‘.a’).append($(‘.c’)); after execution: <div class=”a”> //<—you want div c to append in this <div … Read more