<div class="A">
<a href="abc"><img class="A" alt=" " src="/1.jpg"></a>
</div>
I need a javascript to detect if image broken,make div height to 0px,basically to hide it. Or are there any css to do it?
<script> $('.A').find('img').length == 0){
$(this).hide();
}</script>