My JSON text is
[{
"album_name" : "marriage",
"album_image" : "images/abc.jpg"
}, {
"album_name" : "holiday",
"album_image" : "images/holi.jpg"
}
]
In that i need to get index value of each object. I fetched above values using for loop and appended dynamically. My requirement is when i click on each item i need to pass that index value of that object in onclick function.