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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -