This is the jsfiddle link please refer here for the full set of HTML and Javascript codes. http://jsfiddle.net/6ge12hLs/3
It is currently only showing the whole row itself. Would appreciate if someone could help out to change it to show 2 items per row.
'''
ProductContent += '<tr>';
//Looping the products out
$.each(resp.message, function (index, value) {
ProductContent +=
'<td>' +
'<div class="col-xs-4">' +
'<div class="panel panel-info" style="width: 12rem;">' +
'<div class="panel-heading">' + value.product_name + '</div>' +
'<div class="panel-body">' +
'<img src="https://bitmp08.projectsbit.org/product_images/' + value.product_picture + '"style="width:100px; height:100px;"/>' +
'</div><div class="panel-heading">$' + value.product_price + '.00' +
'<br>' + value.product_brand +
'<br>' + value.product_color +
'<br>' + value.product_category +
'<br>' +
'<button align: center onclick="myFunction()" class="btn btn-danger btn-xs">View</button></div></div></div></td>';
});
ProductContent += '</tr>';
$("#product_list").html(ProductContent);
}
}
})
}
});
'''