Guest User

Untitled

a guest
Feb 20th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. // Find elements within an object by their tag type
  2. function getElementsInObjectByTag(tag) {
  3. x = this.parent
  4. for (var i=0;i<x.length;i++)
  5. {
  6. if (x[i].tag == tag)
  7. alert(x[i])
  8. }
  9. return false;
  10. }
Add Comment
Please, Sign In to add comment