Get url of selected gallery images?

Found it:

id_array.push(img.attributes.url);

This will return url’s instead of id’s.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)