Permalink
Browse files

Fixed parameter order for insertBefore() example.

  • Loading branch information...
1 parent 37f7ae5 commit 03763595ffb456d2ed56fcf395b7ba76a60626e4 Mark Anthony B. Dungo committed with scottgonzalez Sep 17, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 page/using-jquery-core/jquery-object.md
@@ -42,7 +42,7 @@ var target = document.getElementById( "target" );
var newElement = document.createElement( "div" );
-target.parentNode.insertBefore( target.nextSibling, newElement )
+target.parentNode.insertBefore( newElement, target.nextSibling )
```
By wrapping the `target` element in a jQuery object, the same task becomes much simpler:

0 comments on commit 0376359

Please sign in to comment.