我有event_wrapper可以通过单击中的链接在页面上动态添加的 div add-event。用户可以根据需要多次删除/添加这些 div。如果用户选择删除所有这些event_wrapperdiv,我想更改add-event. 这是HTML:
<div class="event_wrapper">
<div class="event">
<div class="well darkblue-background pull-left">
<a class="close tooltip" data-tooltip="Delete this event"><i class="icon-remove"></i></a>
</div>
</div>
</div>
<div class="add-event pull-left">
<a href="javascript:void(0);"> And Then...</a>
</div>
(我正在使用 jQuery)我尝试使用:empty选择器,但它似乎不起作用。有什么建议么?谢谢!