How to loop a json array and update links
- by azz0r
Hello,
On page load, I do one call to get the current status of all the favourite links (display the right message aka: click to subscribe, click to unsubscribe.
So far I have the following code:
$(InitFavorite);
function InitFavorite(){
var jList = $(".favourite_link");
var ids_to_check = {};//new Array();
$.each(jList,…