All of this traversal... There's jQuery for that.