I have a div that can be cloned in jquery, I need to click on "Close div" to remove the cloned div when it is clicked ...
Follow the code ..
$(document).ready(function() {
var linha = $(".engloba:first").clone();
$("#mais").click(function() {
$("#conteudo_engloba").append(linha.clone());
});
});
<script type="text/javascript" src="http://code.jquery.com/jquery-1.11.2.min.js"></script><form><inputtype="button" name="" value="CLONAR" id="mais">
</form>
<div id="conteudo_engloba">
<div class="engloba">
<p>Fechar DIV</p>
<h1>Conteudo</h1>
</div>
</div>