-2
div 형식의 양식 필드가 있고 더 많은 단추를 추가하려면 div 자체가 있습니다. 따라서 addMore 단추를 클릭하면이 div를 모두 추가해야 어떻게 할 수 있습니까?더 많은 내부 divs 추가 jquery
<div id="buildingInfo" >
<div class="form-group" >
<div class="control-group">
<div class="col-sm-6">
<label class="col-sm-4 control-label">Buildings </label>
<div class="col-sm-8">
<select count="0" name="hostel[0][building]" id="hostel_0_building" class="form-control rounded">
<option> Select Buildings</option>
<option>Building 1 </option>
<option>Building 2 </option>
<option>Building 3 </option>
<option>Building 4 </option>
<option>Building 5 </option>
</select>
</div>
</div>
<div class="col-sm-6">
<label class="col-sm-4 control-label">Floors </label>
<div class="col-sm-8">
<select count="0" name="hostel[0][floor]" id="hostel_0_floor" class="form-control rounded">
<option> Select Floors</option>
<option>Floor 1 </option>
<option>Floor 2 </option>
<option>Floor 3 </option>
<option>Floor 4 </option>
<option>Floor 5 </option>
<option>Floor 6 </option>
<option>Floor 7 </option>
</select>
</div>
</div>
<div > </div>
<div class="col-sm-6">
<label class="col-sm-4 control-label">Flats</label>
<div class="col-sm-8">
<select count="0" name="hostel[0][flat]" id="hostel_0_flat" class="form-control rounded">
<option> Select Flats</option>
<option>Flat 1 </option>
<option>Flat 2 </option>
<option>Flat 3 </option>
<option>Flat 4 </option>
<option>Flat 5 </option>
<option>Flat 6 </option>
<option>Flat 7 </option>
<option>Flat 8 </option>
<option>Flat 9 </option>
<option>Flat 10 </option>
</select>
</div>
</div>
<div class="col-sm-6">
<label class="col-sm-4 control-label">Rooms </label>
<div class="col-sm-8">
<select count="0" name="hostel[0][room]" id="hostel_0_room" class="form-control rounded">
<option> Select Rooms</option>
<option>Room 1 </option>
<option>Room 2 </option>
<option>Room 3 </option>
<option>Room 4 </option>
<option>Room 5 </option>
<option>Room 6 </option>
<option>Room 7 </option>
<option>Room 8 </option>
<option>Room 9 </option>
<option>Room 10 </option>
</select>
</div>
</div>
<div> </div>
<div class="col-sm-6">
<label class="col-sm-4 control-label">Beds </label>
<div class="col-sm-8">
<input type="number" required="required" min="1" max="40" count="0" name="hostel[0][bed]" id="hostel_0_bed" class="form-control rounded" placeholder="select Rooms" value="" />
</div>
</div>
</div>
<div class="col-sm-6 text-center" >
<button type="button" class="btn btn-info btn-s-xs addBuilding">+ Add More Buildings</button>
</div>
</div>
</div>
</div>
나는 어떻게 처리 할 수 있는지 알고 싶습니다.