Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Find elements within an object by their tag type
- function getElementsInObjectByTag(tag) {
- x = this.parent
- for (var i=0;i<x.length;i++)
- {
- if (x[i].tag == tag)
- alert(x[i])
- }
- return false;
- }
Add Comment
Please, Sign In to add comment