json jquery ajax request

get json data with jquery using getJSON

Javascript

$.getJSON('https://my_url/stuff.json', { get_param: 'value' }, function(data) {
    $.each(data, function(index, element) {
        $('target').append($('<div>', {
            text: element.name
        }));
    });
});

No Items Found.

Add Comment
Type in a Nick Name here
 
Page Views

This page has been viewed 106 times.

Search Code
Search Code by entering your search text above.
Welcome

This is my test area for webdev. I keep a collection of code snippits here, mostly for my reference. Also if i find a good site, i usually add it here.

โค๐Ÿ‘ฉโ€๐Ÿ’ป๐Ÿ•น

Random Quote