Home > Articles > Jquery Articles > jQuery Empty function.

jQuery Empty function.

by John Prathip   on Sep 08, 2015   Category: Jquery  | Level: Intermediate  |  Views: 769    |  Points: 100   
Like this article? Bookmark and Share:
By using empty() function we can remove inside content of div element.

<script type = "text/javascript">


$(function() 


{


$('#BtnEmpty').click(function()


{


   $('#Divcontent').empty();


});


})


</script>



Like this article? Bookmark and Share:

Most viewed Articles

User Comments


No response found, be the first to review this article.

Submit feedback about this article

Please sign in to post feedback

Latest Posts