select clone wtf
by nkovacs
HTML
<ul id="Property_material">
<li>
<div class="checker" id="uniform-Property_material_0"> <span><input id="Property_material_0" value="tegla" type="checkbox" name="Property[material][]">
</span>
</div>
<label for="Property_material_0">tégla</label>
</li>
<li>
<div class="checker" id="uniform-Property_material_1"><span><input id="Property_material_1" value="panel" type="checkbox" name="Property[material][]"></span>
</div>
<label for="Property_material_1">panel</label>
</li>
<li>
<div class="checker" id="uniform-Property_material_2"><span><input id="Property_material_2" value="konnyuszerk" type="checkbox" name="Property[material][]"></span>
</div>
<label for="Property_material_2">könnyű szerkezetes</label>
</li>
<li>
<div class="checker" id="uniform-Property_material_3"><span><input id="Property_material_3" value="fa" type="checkbox" name="Property[material][]"></span>
</div>
<label for="Property_material_3">fa</label>
</li>
<li>
<div class="checker" id="uniform-Property_material_4"><span><input id="Property_material_4" value="egyeb" type="checkbox" name="Property[material][]"></span>
</div>
<label for="Property_material_4">egyéb anyag</label>
</li>
<li>
<div class="checker" id="uniform-Property_material_5"><span><input id="Property_material_5" value="nincs_megadva" type="checkbox" name="Property[material][]"></span>
</div>
<label for="Property_material_5">nincs megadva</label>
</li>
</ul>
<input id="béla" type="text" />
<select id="józsi">
<option value="1">Egy</option>
<option value="2">Kettő</option>
<option value="3">Három</option>
<option value="4">Négy</option>
<option value="5">Öt</option>
<option value="6">Hat</option>
</select>
<button id="gomb">klikk</button>
<button id="gomb2">klikk2</button>
<button...
JavaScript
$('#gomb').click(function () {
cucc = $('#Property_material').clone().removeAttr('id');
$('#konténer').append(cucc);
});
$('#gomb2').click(function () {
cucc = $('#béla').clone().removeAttr('id');
$('#konténer').append(cucc);
});
$('#gomb3').click(function () {
cucc = $('#józsi').clone().removeAttr('id');
$('#konténer').append(cucc);
});