I have a promise on a get request in jquery, that return data
then add it to the page via append:
$.get('/get/something').done(function(data) {
$('#main').append(data);
})
The data
looks something like :
<div class="container">
...
...
</div>
How can I wrap that returned data/appended element in a jquery selector and then perform operations on it?
I've tried :
$(data).some-jquery-fnc();
But no luck.