Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- {"instrumentGroup":"Woodwind", "category1":"Instrument", "name":" Bb Clarinet", "price":"£400","quantityAvailable":"10", "description":"ABS resin Buffet B12 student clarinet, clear sound.", "rating":"4", "make":"Buffet", "model":"B12"},
- {"instrumentGroup":"Woodwind", "category1":"Instrument", "name":"Bb Clarinet", "price":"£1700","quantityAvailable":"10", "description":" CX with full round sound and clear tone.", "rating":"5", "make":"Yamaha", "model":"YCL-CX"},
- {"instrumentGroup":"Woodwind", "category1":"Instrument", "name":"Bass Clarinet", "price":"£3500","quantityAvailable":"5", "description":"Student Grenadilla wood bass clarinet with silver plated keywork. Range down to Eb.", "rating":"4", "make":"Buffet", "model":"BC1180"}
- ]
- <article id="prodList">
- <article id="products">
- <section id="row">
- <figure class="prodInfo">
- <!--this makes the whole product area clickable!--><a href="#link">
- <span class="link"></span>
- </a>
- <img src="Images/saxophone.png" alt="instrument" width="100" height="100">
- <figcaption>
- </figcaption>
- </figure>
- <figure class="prodInfo">
- <!--this makes the whole product area clickable!--><a href="#link">
- <span class="link"></span>
- </a>
- <img src="Images/saxophone.png" alt="instrument" width="100" height="100">
- <figcaption>
- </figcaption>
- </figure>
- </section>
- </article>
- </article>
- $.getJSON("products.json", function(result){
- $.each(result, function(key, val){
- $('figcaption').html(val.make + " " + val.model + "<br/>" + val.name + "<br/>" + val.price);
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement