jquery - Object has not method find? -


var links = "" $('#right').load('www.mywebsite.com/download', function(data) {     data.find(".download-row a").each(function(){         links += $(this).attr("href");     }); }); 

when run code in console, gives me object has no method find. there' i'm not getting...

i'm trying link

<div class="download-row">     <a href="http://www.website.com">a website</a> </div> 

you need wrap data in jquery object in order use find() method. also, if links undefined, might want first log data make sure load() working properly.


Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

C# WinForm - loading screen -