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
Post a Comment