Revision: 50421
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at August 20, 2011 19:55 by alberomo
Initial Code
function getNextElement(node) { if(node.nodeType == 1) { return node; } if (node.nextSibling) { return getNextElement(node.nextSibling); } return null; }
Initial URL
Initial Description
A JS function that returns the next element of a node. Argument: The node you want to know next element. From book Dom Scripting by Jeremy Keith.
Initial Title
getNextElement function
Initial Tags
javascript
Initial Language
JavaScript