私はいくつかのHTMLを持つページを持っています。追加のスパンタグをクラスでラップする必要があります。スパンの内部テキストを取得し、クラスを使用して新しいスパンでラップします
<span class="VIEWBOX" id="_Datacomp_c_importantnote">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. vestibulum vel tellus. Morbi suscipit enim ac <BR>
</span>
親スパンにあるクラス/ IDは使用できません。新しいスパースを作成する必要があります。
私は
var innnerNoteText = $('#_Datacomp_c_importantnote').text();
innerNoteText.wrap('<span class="noteText"></span>');
を書かれている。しかし、これは動作していない、任意のヘルプは素晴らしいだろう!
ああ単語が、それは私よりはましです。 – Mathletics