私のHTML
<div class="item-page">
<div class="Introduction">
<div class="FrTxtLoans">
<h1 class="uppercase"> home-mortgage </h1>
</div>
</div>
<div id="main_content">
<div class="landing_wrapper"> </div>
</div>
</div>
私の質問
私がやりたいのは、周りのすべてのダイビングを削除することです<div class="landing_wrapper"> </div>
私のスクリプト
私が使用
$('.item-page').replaceWith($('.landing_wrapper'));
していて、それは魅力のように機能します。
ここでjsFiddleを参照してください
私の問題
ウェブサイトでMooToolsとjQueryの競合があるため、ウェブサイトjQuery.noConflict();
の上部で使用し、名前を変更しました
$('.item-page').replaceWith($('.landing_wrapper'));
と
jQuery('.item-page').replaceWith($('.landing_wrapper'));
その後、replaceWithは機能を停止しました。jQueryConflctjsFiddleはこちら
問題を見せてくれませんか?