Answer the question
In order to leave comments, you need to log in
How to pull out of the object at each url block?
I'm making a widget that displays tasks by time. There are three blocks in the markup for displaying tasks. Since all the tasks cannot be placed in three blocks, there is a change of tasks, after a certain period of time.
The data is taken from the object. The problem is to pull up the appropriate amount of url from the corresponding task. By the number of urls, collect and insert into the desired block. I insert one picture at a time, but I need all the pictures from the desired task.
The problem is that when looping through each block, get a set of urls that it contains. At me it turns out to pull out group url.
Here is my code to access the url :
var url;
$.each(json_date['dills'], function(key, val) {
$.each(val['ParticipantsNAme'], function(i, n) {
caunter++;
console.log(caunter);
url = n.url;
console.log(url);
});
});
Answer the question
In order to leave comments, you need to log in
and in what form do you want to form? I threw it on the ball through a regular array jsfiddle.net/v3qzb/13
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question