let images = ["1.jpg","2.jpg","3.jpg","4.jpg","5.jpg"]
Convert this Encoded Array to this using JQuery…..
I have images encoded array, I want to add src: images like I mention down in the items collection.
{
src: '1.jpg'
},
{
src: '2.jpg'
},
{
src: '3.jpg'
},
{
src: '4.jpg'
},
{
src: '5.jpg'
}
],```
2
Answers
just try this
output
Here’s the jQuery equivalent