Tuesday, August 18, 2015

Remove Element and content

 Remove element is remove the Element and its child element.


<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script>
$(document).ready(function(){
    $("button").click(function(){
        $("#div123").remove();
    });
});
</script>
</head>

Popular Posts