5
Cómo insertar tanto la clave como el valor en una matriz en Jquery
Estoy leyendo un feed RSS y presionando el título y el enlace en una matriz en Jquery . Lo que hice es var arr = []; $.getJSON("displayjson.php",function(data){ $.each(data.news, function(i,news){ var title = news.title; var link = news.link; arr.push({title : link}); }); }); Y estoy leyendo esa matriz nuevamente usando $('#show').click(function(){ …