1
How do I search within a json for an object with a particular id
, this process must take place within a function $(document).on('click', 'li', function(){});
, and the id
to be researched will be the id
of the element li
clicked, the result of the search would be the return of all the data of the element that has the id
of li
clicked .
Good think the explanation ta simple but ta clear, sorry I do not put code, actually I want ideas for me to research and learn, if I put the code here I will get the answer ready, not what I want, but if it is necessary I put a code example here.
I tried here but you’re returning me
undefined
on the console.– user27585
I got =D , the positioning of a variable of mine was wrong. so I was giving indefinite.
– user27585