Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function(){
- $(function() {
- //Calling $.getJSON API
- $.getJSON('http://www.atauction.com/jsonpobject.php&t=title&p=price',
- // No additional parameters sent- If you want you can send below
- {},
- function (data) {
- // data is now JSON object instantiated from retrieved info
- $.each(data, function() {
- //Title
- var title = val['title'];
- var title = val['price'];
- //Insert the data to HTML page
- $(".title").append(title);
- $(".price").append(price);
- });
- });
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement