Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 36: | Rivi 36: | ||
var images = jQuery( '<div class="card-columns jwImageSelect_images"></div>' ); | var images = jQuery( '<div class="card-columns jwImageSelect_images"></div>' ); | ||
select.after( images ); | select.after( images ); | ||
var | var options = select.find( 'option' ); | ||
console.log( | console.log( options ); | ||
for ( var oi in options ) { | |||
//select.find( 'option' ).each( function() { | |||
var option = options[ oi ]; | |||
var page = options.text(); //jQuery( this ).text(); | |||
var page = jQuery( this ).text(); | var value = options.val(); //jQuery( this ).val(); | ||
var value = jQuery( this ).val(); | |||
searchImg = "action=query&prop=imageinfo&iiprop=url|size&format=json&titles=" + encodeURIComponent( page ); | searchImg = "action=query&prop=imageinfo&iiprop=url|size&format=json&titles=" + encodeURIComponent( page ); | ||
| Rivi 76: | Rivi 77: | ||
//output += ''; | //output += ''; | ||
}); | } //); | ||
}); | }); | ||


