or...

$.each(theList.list,function (a,b) {
  alert (b.id + ',' + b.name);
})


On Jan 21, 7:30 pm, Ami <aminad...@gmail.com> wrote:
> I think that this what R U searching for:
>
> var theList={"list":[
> {"id":"15","name":"Testing","description":"test","owner":"1","active":"1","featured":"0","machinename":"testing"},
> {"id":"16","name":"Testing","description":"test","owner":"1","active":"1","featured":"0","machinename":"testing"},
> {"id":"17","name":"Testing","description":"test","owner":"1","active":"1","featured":"0","machinename":"testing"}
> ]};
>
> theList=theList['list'];
> $.each(theList,function (a,b,c)
> {
> alert (b.id + ',' + b.name);
>
> })
>
> On Jan 22, 4:46 am, blockedmind <blockedm...@gmail.com> wrote:
>
> > I have data recieved by ajax function of jquery like:
> > {"list":[
> > {"id":"17","name":"Testing","description":"test","owner":"1","active":"1","featured":"0","machinename":"testing"},
> > {"id":"16","name":"Another
> > List","description":"Another","owner":"1","active":"1","featured":"0","machinename":"another-
> > list"},
> > {"id":"15","name":"Listenin
> > Adı","description":"Yeah.","owner":"1","active":"1","featured":"0","machinename":"listenin-
> > adi"},
> > ]};
>
> > how can i print each "list" in a loop? i tried many variations,
> > couldn't get the result.

Reply via email to