|
Post by Schubaltz on Jun 10, 2007 15:35:08 GMT -5
Description: Allows you to append multiple nodes to a parent node.
Syntax: appendChildren(object, [,objects])
function appendChildren(a) { for(var x = 1; x < arguments.length; x ++) a.appendChild(arguments[x]); return a; }
Example: var i = document.createTextNode("hey"), n = document.createElement("br"); var e = appendChildren(document.createElement("div"), i, n);
|
|
Virtuoso
Junior Member
Teh Baby Hax0rz
Posts: 64
|
Post by Virtuoso on Mar 26, 2008 19:22:55 GMT -5
Definitely helpful, it will really help compact some of my codes.
|
|
|
Post by Schubaltz on Mar 26, 2008 19:24:14 GMT -5
You messin'?
|
|
Virtuoso
Junior Member
Teh Baby Hax0rz
Posts: 64
|
Post by Virtuoso on Mar 26, 2008 19:49:27 GMT -5
You messin'? Look at the last code I submitted, I could easily shrink that a crapload with this. xD
|
|
|
Post by Schubaltz on Mar 26, 2008 19:53:21 GMT -5
Guess i'll move that now, won't have the database coded for a couple more days.
|
|