So I have my HTML inside a jquery object and want to grab an element by class from that object, I have the following code:
var feed = data.post.content;
var $newFeed = $(feed);
var stuff = $newFeed('.ERSIngredients').html();
console.log(stuff);
When I print $newFeed itself I can see this div with this class exist, but I'm always getting an error: "Uncaught TypeError: object is not a function"
What am I doing wrong?
var stuff = $('<div />', {html : feed}).find('.ERSIngredients').html();