I have this html
<div>
<p></p>
<!-- here may be several tags, may be none -->
</div>
I want at click on document, remove all tags, which may be will after <p> tag, (after <p> tag may be several and may be none tags), please tell, how make this?
$(document).on("click", function () {
// ???
})
1 Answer