insertAfter(content): the reverse of $(A).after(B) : insertAfter « jQuery « JavaScript DHTML
- JavaScript DHTML
- jQuery
- insertAfter
insertAfter(content): the reverse of $(A).after(B)
<html>
<head>
<script type="text/javascript" src="js/jquery-1.3.2.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("p").insertAfter( $("b") );
});
</script>
</head>
<body>
<body>
<p>asdf: </p>
<b>asdf</b>
</body>
</html>
Related examples in the same category