0

From my XML I'd like to get the number of chaper nodes that are nested in video nodes. Getting the total number of chaper nodes works with

$(xml).find("chapter").length

What is the syntax to add the video parent node requirement?

4

1 回答 1

1

我想你正在寻找:

$(xml).find("video > chapter").length
于 2013-08-04T10:16:28.230 回答