Question and answer is powered by AnsPress.io
my div id is gallery_data I want to remove children tags using jquery in my HTML web page. How can I do it?
Remove children element of a HTML tag. Follow this example code:
<script type="text/javascript"> $('#gallery_data').html(''); </script>
Use jquery remove() to clear children in jquery. Follow the below link, hope it will be helpful for you?
<script type="text/javascript"> $('#gallery_data').remove(); </script>