How to get array into jQuery plugin property object/array -


Perhaps the easiest question is, I've never done this before ... I'm trying to explain how you A jQuery plugin will populate the property object / array or whatever you call it ... with a normal array.

  var imageArray = new Array (); ImageArray = ['Pictures / 1000x800.png', 'Pictures / 495x880.png', 'Pictures / 600x800.png'];   

So, I'm trying to get it ... the property of the plugin "image" with images in unknown quantity ...

  JQuery (function ($ ({$}} ({slide: [{picture: 'images / 1000x800.png'}, {image: 'images / 495x880.png'}, {image: 'images / 600x800.png' }, // ...e.t.c... ] }); });   

Here's an example of what I'm trying to do ... though I do not know the correct syntax ...

  jQuery (function ( $) {$ .migglin ({Slides: [for var i = 0; i  

Appreciate any help !!!

using $ .map :

  var imageArray = ['Pictures / 1000x800.png', 'Picture / 495x880.png', ...]; $ .Miglagin ({Slides : $ .map (image array, function (l) {return {image: l}}}}}});    

Comments