jquery - Why is $.get not returning the meta elements? -
$.get('home.html', function(data) { console.log($(data).find('meta')); // doesnt work console.log($(data).find('#foobar')); // works });
doesn't return meta elements? trickery this?
hmmmm, seems bit odd. works using filter
instead of find
.
$.get('home.html', function(data) { console.log($(data).filter('meta')); // works console.log($(data).find('#foobar')); // works });
Comments
Post a Comment