Hiding Parent Division Tag if Child Division tag is Empty using jQuery.

Vishalneeraj-24503
Posted by Vishalneeraj-24503 under jQuery category on | Points: 40 | Views : 514
Write below code:-
<script type = "text/javascript">
$(function()
{
$('#btn_hide').click(function()
{
$(".childiv:empty").parent().hide();
});
})
</script>

Comments or Responses

Login to post response