i have a problem with the Twitter API.
I just don’t see how to get the first trend word. My problem is the date at the begining.
Hope someone can help me.
js code
$.ajax({url:'http://api.twitter.com/1/trends/current.json?callback=?',dataType:'json', success:function(data)
{
$.each(data.trends, function(i)
{
console.log(''+data.trends+'');
// alert(data.trends.XXXXXXX.[0].name);
});
} });
example
http://jsfiddle.net/ay6j8/
Thank in advance!
Peter
You need to do another
$.eachin your each: