I ran into a strange problem which too me a while to figure out what was going on. I used the .wrap() function to wrap an element with a span. Then, later on in my script I wanted to find all of the parents (using .parents() or even p.arent()) of the element that I wrapped. Strangely, it would always only find the parent that was wrapped around it, and nothing higher than that, is this normal?
- [jQuery] If object wrapped, parents can't be found? Nic Hubbard