javascript - get and append first four images from url -


that's pretty it, how first 4 images whatever url , append them specified element

something this:

$('document').ready(function(){ var thing = $.get('thing.html'); thing.slice(0,2).appendto(".appending"); }); 

try this

$('document').ready(function () {      var thing = $.get('htmlpage.htm',      function (markup, b) {        var $page = $(markup);        $page.each(function (index, item) {              if (item.tagname == "img") {                 $(item).appendto(".appending");              }        });    }); }); 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -