Hello,
I'm just getting started, but the Documentation for the InsertAfter
Demo is confusing to me:
Is it moving the "  <p> is what I said... </p>" (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>
  <p> is what I said... </p><div id="foo">FOO!</div>
</body>
</html>

Reply via email to