You need to use ajax success callback function to add the checkbox.
$(function() {
$('#btn2').on('click', function() {
// paste the below code in your success callback
$('<input type="checkbox" name="chkItem" />').insertBefore(this);
});
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div class="form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12">Add Skill</label>
<div class="col-md-6 col-sm-3 col-xs-12">
<input type='text' id='others' name='others' class="form-control col-md-7 col-xs-3" />
<button type='button' id='btn2' value='Add' class="btn btn-success">Add</button>
</div>
</div>
Above snippet will help you to add checkbox. I've added the checkbox on a simple button click, you can modify it with your ajax code. Hope this will help you.
Updated with ajax code,
$(function() {
$('#btn2').on('click', function() {
var self=this;
$.ajax({
url:'your_server_url',
type:'POST', // let it is POST method
success:function(response){
$('<input type="checkbox" name="chkItem" />')
.insertBefore(self); // insert before your clicked button
}
});
});
});