<script type = "text/javascript">$(function() {$('#btnHide').click(function() {if ($('#div').html().trim()) {alert('Div Contains Data')}else {$('#div').hide();}});})</script>
Login to post response