Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.ajax({
- url: 'AJAX/storeAjax.php',
- type: 'get',
- data: {'min-price' : '0'},
- success: function (json) {
- $("#store-holder").empty();
- window.console.log(json);
- $.each(json, function (index, product_item) {
- if (typeof product_item == 'object') {
- newhtml += '<div class="product-container"><img src="' +
- product_item.pic + '" style="width: 50px; height: 50px;"\> <h4>' + product_item.name + '</h4></a></div>';
- } else {
- return false;
- }
- $('#store-holder').append(newhtml);
- });
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement