js如何清除元素?
如下结构:
<div class="mid_content_right_f_pic" style="position:relative;display:block;overflow:hidden;z-index:1" id="mybox">
<img src="" width="306px" height="150px" id="imgIndex" style="position:relative;z-index:-1;"/>
</div>
如何用js清除除id为imgIndex的其它<img>元素呢?
谢谢。