この HTML では:
<div class="seal">
<div class="how with"> </div>
<div class="how"> </div>
<div class="with"> </div>
</div>
このネストされた要素を選択するにはどうすればよいですか?:
<div class="how with"> </div>
この HTML では:
<div class="seal">
<div class="how with"> </div>
<div class="how"> </div>
<div class="with"> </div>
</div>
このネストされた要素を選択するにはどうすればよいですか?:
<div class="how with"> </div>
jQuery セレクターは CSS セレクターのように機能します。
$('.seal .how.with')
<div class="seal">
<div class="how with"> </div>
<div class="how"> </div>
<div class="with"> </div>
</div>
セレクターシール:
var seal = jQuery(".seal");
セレクターのやり方
jQuery(".how", seal);
セレクター付き
jQuery(".with", seal);
セレクターの使い方と使い方
jQuery(".how.with", seal);
また
jQuery(".seal .how.with");