JSFiddle - React, Tailwind, and code Playground
HTML
<div id="appendClass1" class="clearfix">
<div class="col-md-4">
<div class="form-group">
<label>Name</label>
<input type="text" class="form-control" placeholder="Enter your file name" name="file_name[]">
</div>
</div>
<div class="col-md-8">
<div class="form-group">
<label>Choose file</label>
<input name="file_img[]" type="file" style="margin-top: 8px;">
</div>
</div>
</div>
<button type="button" id="getCount" class="pull-right btn btn-primary btn-xs" onclick="addFloorPlan(1);">Add another</button>
JavaScript
function addFloorPlan(ant){
//var count =
$('#appendClass'+ant+'').after('<div id="appendClass'+ant+'" class="clearfix"><div class="col-md-4"><div class="form-group"><label>Name</label><input type="text" class="form-control" placeholder="Enter your file name" name="file_name'+ant+'[]"></div></div><div class="col-md-8"><div class="form-group"><label>Choose file</label><input name="file_img'+ant+'[]" type="file" style="margin-top: 8px;"><span class="glyphicon glyphicon-remove removeCss" aria-hidden="true" onclick="removeFloorPlan('+ant+');"></span></div></div></div>');
var cnt = ant+1;
document.getElementById('getCount').outerHTML.replace('addFloorPlan('+ant+')', 'addFloorPlan('+cnt+')');
alert(document.getElementById('getCount').outerHTML.replace('addFloorPlan('+ant+')', 'addFloorPlan('+cnt+')'));
}