How to transfer content from one block to another?

Hello, I can not transfer content from one block to another, in what could be the problem?
https://codepen.io/menethil/pen/MWweomN
April 7th 20 at 15:42
1 answer
April 7th 20 at 15:44
Solution
Instead of block1/block2 share block class. A single call to parent is not enough, need to go higher - it is better to use closest.

$('.item').on('click', function() {
$(this).closest('.class').siblings().find('.block').append(this);
});
Thank you so much! - Lera_Kshlerin commented on April 7th 20 at 15:47

Find more questions by tags jQuery