I got my database record in ajax response. but now i want to show in datatable. i've my complete html. but dont know how i'll use iteration and show data .
$.ajax({
url: 'http://localhost/MyApplication/index.php/user/getUserRecord',
data: {'title': title}, // change this to send js object
type: "post",
success: function(data){
//document.write(data); just do not use document.write
console.log(data);
}
});
<table class="table table-striped table-bordered table-hover" id="dataTables-example">
<thead>
<tr>
<th>Business Name</th>
<th>Address</th>
<th& ...
Go to the complete details ...