http://jsfiddle.net/PAWAS/3/を参照してください
JavaScript:
$(document).ready(function () {
$.each($(".item"), function(index, value) {
thisEl = $(this);
thisEl.children("strong").after("<span style='display:inline-block'>");
$("</span>").appendTo(thisEl);
});
});
HTML:
<div class="item">
<strong>Time Cond:</strong>
MorningCheck
</div>
する必要があります:
<div class="item">
<strong>Time Cond:</strong>
<span> MorningCheck</span>
</div>
しかし、</span>
テキストの前に挿入されますMorningCheck
私は何を間違えましたか?