How do I only get TOP-level child tags that match what I am looking for?
For example, if I have:
<conversations>
<status>1</status>
<conversation>
<status>0</status>
<text>Hi</text>
</conversation>
</conversations>
How do I go about gettin开发者_开发百科g < status > for < conversations > while ignoring < conversation >?
Use the child selector, >:
$('conversations > status')
精彩评论