1
I have a div that can be cloned in jquery, I need to click "Close div" remove the cloned div when clicked...
Follows 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>
<input type="button" name="" value="CLONAR" id="mais">
</form>
<div id="conteudo_engloba">
<div class="engloba">
<p>Fechar DIV</p>
<h1>Conteudo</h1>
</div>
</div>
that’s right buddy, thank you very much!!
– Alh
You’re welcome @Alh. Glad I could help
– Miguel