次のようなセレクタがあります。
$(source).find('.cb_notes').each(function() { .. } );
子供がいる人は無視.cb_notes
してください。
例えば:
<td class="cb_notes">huhuhu</td>
$($('.cb_notes')[0]).children().length
--> 子が 0 人なので、選択する必要があります
と
<td class="cb_notes">
<span class="shortcontent"> .. </span>
<span class="allcontent"> .. </span>
<span> .. </span>
</td>
$($('.cb_notes')[1]).children().length
--> 3 人の子供、したがって無視する必要があります
したがって、ここでセレクターを変更するにはどうすればよいですか。
$(source).find('.cb_notes') ?