Skip to content

Instantly share code, notes, and snippets.

@gingerrific
Last active August 29, 2015 14:01
Show Gist options
  • Save gingerrific/c5d0c2720c70b1e9ebe3 to your computer and use it in GitHub Desktop.
Save gingerrific/c5d0c2720c70b1e9ebe3 to your computer and use it in GitHub Desktop.
items.forEach(function (item) {
if (item.price < 50) {
$('.main-container').append('<div class="container"></div>')
$('.container').last().append('<div class="box1" style="background-image: url(' + item.Images[0].url_170x135 + ')">', '<div class="box2">' + item.price + '</div>');
}
})
@gingerrific
Copy link
Author

updated jquery to create a box and place the two elements inside of it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment