单击button1时,我想用“divtoexpand”类扩展最近的div。
我怎样才能做到这一点?
HTML:
<div class="test">
<div class="menu">
<div class="button1"></div>
</div>
</div>
<div class="divtoexpand"></div>
<div class="test">
<div class="menu">
<div class="button1"></div>
</div>
</div>
<div class="divtoexpand"></div>