I'm trying to add two values from a JSON feed: http://api.jo.je/virginmoneygiving/jsonp.php?d=59024&callback=?
I need to add 'money_total' and 'money_gift_aid'
How do I do that? Currently I'm just showing data.money_total using the code below...
var $js2 = jQuery.noConflict();
$js2(function() {
$js2.getJSON('http://api.jo.je/virginmoneygiving/jsonp.php?d=59024&callback=?', {}, function (data) {
$js2('#raised').html("Total: <span>£" + data.money_total + "</span>");
var donations = "";
$js2.each(data.donations, function(index, value) {
if (index < 1)
{
donations = donations + "<strong>Latest: " + value.person + ",</strong>" + " £" + value.amount;
}
});
$js2('#donations').html(donations);
})
});
Can anyone help please?
Thanks, Matt