Insert after
Description
The following code shows how to reverse the $(A).after(B) with $(A).insertAfter(B).
Example
<!-- w w w.ja v a 2 s. com-->
<html>
<head>
<script
src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("p").insertAfter($("b"));
});
</script>
</head>
<body>
<body>
<p>java2s.com:</p>
<b>java2s.com</b>
</body>
</html>