I am going to get a element from a html-string with jQuery, but I always get an undefined in my console. My String is:
asd
Try:
console.log($('asdfghjkl').filter('.test').html());
or:
console.log($('.test', 'asdfghjkl').html());