0
で働いていない:追加私はdiv要素でアンカータグを追加しようとしていますが、残念ながらそのが動作していないjQueryのv1.11.3
以下は、私のコード
$(document).ready(function() {
$('.test-inner').append('<a href="#" class="new-img-holder"></a>');
$('.test-image').appendTo('.new-img-holder');
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<div class="test-inner">
<img class="test-image" src="cine-sudarshan.jpg" alt="">
</div>
どこ 'fancybox-inner'のですか? –
申し訳ありません、ただ私のJSを更新します –
あなたのコードは大丈夫です。バグはどこかにあるはずです。 –