html - jQuery - get all src of images in div and put into field -
i want modified this tutorial requirements there 1 problem me. i'm beginner jquery , image sources specifïc div , put them field. there variable images field , contain images want instead of image sources div , put them field images. know isn't such complicated don't know how it.
the source here http://jsfiddle.net/s5v3v/36/
this variable image source on jsfiddle want fill div instead have there now:
images = ['http://kimjoyfox.com/blog/wp-content/uploads/drwho8.jpg', 'http://kimjoyfox.com/blog/wp-content/uploads/drwho7.jpg', 'http://kimjoyfox.com/blog/wp-content/uploads/drwho6.jpg', 'http://kimjoyfox.com/blog/wp-content/uploads/drwho5.jpg', 'http://kimjoyfox.com/blog/wp-content/uploads/drwho4.jpg', 'http://kimjoyfox.com/blog/wp-content/uploads/drwho3.jpg', 'http://kimjoyfox.com/blog/wp-content/uploads/dr-whos-tardis.png', 'http://kimjoyfox.com/blog/wp-content/uploads/drwho9.jpg', 'http://kimjoyfox.com/blog/wp-content/uploads/drwho1.jpg'];
thanks advance.
in dom ready try
var images = $('.thumbnailarrows').children('img').map(function(){ return $(this).attr('src') }).get()
Comments
Post a Comment