I need to be able to select the root element from a fragment without knowing the node types, class, id or hierachy.
you could look into using the parent() and children() functions. is you need to go multiple levels , you can chain them like so.
$("#a01").parent().parent() //returns please see my comment, and I'll try to give a better solution. 0 讨论(0) 查看其它9个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
please see my comment, and I'll try to give a better solution.