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.
<ul class="parent"> <li class="abc">1</li> <li class="abc">2</li> </ul>
他のクラスと同じクラスを持つ li を選択するにはどうすればよいですか?
これも機能します:
$('//ul[@class="parent"]/li[1]') #Targets the first "<li>". $('//ul[@class="parent"]/li[2]') #Targets the second "<li>".