<div class="events">
<div class="single_event">
<div class="div1">
<div class="moveMe"><img src="example.img" /></div>
</div>
<div class="div2">
<!-- .moveMe targets here -->
</div>
</div><!-- end .single-event -->
<div class="single_event">
<div class="div1">
<div class="moveMe"><img src="example.img" /></div>
</div>
<div class="div2">
<!-- .moveMe targets here -->
</div>
</div><!-- end .single-event -->
</div><!-- end .events -->
すべての .single_event 内の各 .moveMe について、要素全体 (.moveMe) を div2 に移動したいと考えています。しばらくこれに取り組んできましたが、うまく動作しません..
誰でも手がかりを得ましたか?
ここにウェブサイトがあります: http://livefixtures.co.uk * 注意、ライブで作業しているので、変に見えるかもしれません。
.wd-event-channels を .wd-event-content に移動したいと考えています。
私はjQueryでこれを試しました:
$('.wd-event-channels').appendTo(function(){
return $(this).parent().find('.wd-event-content');
});
親を 2 回実行すると、wd-event-wrap レベルになり、対応するターゲット div (.wd-event-content) を選択できます。重要なのは、div が同じ wd-event 内で移動されることです。