I'm having an issue with an ajax call using jQuery. I am posting information to the server, and getting back data as expected. The type of data I am getting back is html. Using firebug, if I console.log the data, it shows an object with all my tags. I want to manipulate the form of the returned data, but when I try to console.log the form, I get an empty object. What am I doing wrong? Here is my code:
$.post('add', {'ajax':true}, function(data){
var $data = $(data);
console.log($data.find('form'));
});