Пример:
Вставить все параграфы после элемента c id "foo". Так же как $("#foo").after("p")
"jQuery"
$("p").insertAfter("#foo"); // проверьте after() к примеру
"HTML"
is what I said...
<div id="foo">FOO!</div>
"CSS"
#foo { background:yellow; }
"Живой пример jQuery"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link href="http://slyweb.ru/css/jqueryiframe.css"
rel="stylesheet" type="text/css"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("p").insertAfter("#foo"); // проверьте after() к примеру
});
</script>
</head>
<body class="iframe">
is what I said...
<div id="foo">FOO!</div>
</body>
</html>
<style>
#foo { background:yellow; }
</style>