Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
で解析された次の XML ノードのコンテンツを取得しようとしています$.parseXML()。
$.parseXML()
content = $(this).find('[id="100"]')
id="100" のすべてのノードで機能します。これは、1. + 2. のコンテンツを取得することを意味します。
content = $(this).find('[id="100" i1="a"]')
動作しません。
1. のコンテンツのみを取得するには、どの式が必要ですか?
属性 ID 100 と属性 i1 を持つ要素を探しているa場合
a
content = $(this).find('[id="100"][i1="a"]')