[jQuery] InsertAfter Documentation
Hello,
I'm just getting started, but the Documentation for the InsertAfter
Demo is confusing to me:
Is it moving the " is what I said...
" (Which it looks like
its doing). Or is suposed to Insert something?
Thanks,
Mike
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script>
$(document).ready(function(){
$("p").insertAfter("#foo"); // check after() examples
});
</script>
<style>#foo { background:yellow; }</style>
</head>
<body>
is what I said...
<div id="foo">FOO!</div>
</body>
</html>