$('ul li:has(ul.child)').addClass('has_child');. You can select the div, based on its child contents and then apply a CSS class to the parent all in one ...
確定! 回上一頁