I need to add in array props of childrens of a parent div like so :

```
<div>
<img id="1">
<img id="2">
<img id="3">
<img id="4">
</div>

```

So in the array it should be `a = [1,2,3,4];`

What i have done so far:

```
lengthOfSmallImgs = element.children('div').children('img').length;
        for (var i = 0; i < lengthOfSmallImgs; i++) {
            tags = [];
            tags[i] = element.children('div').children('img');
            console.log(tags[i]);
        }

```

But unfortunately, the console looks like: `a=[1, undefined, undefined, undefined]`, and the `a[0] = [img#1, img#2, img#3, img#4, prevObject: x.fn.x.init[1], context: a].`

Where i'm wrong?