jQuery AJAX returned result -


i'm having issue ajax call using jquery. posting information server, , getting data expected. type of data getting html. using firebug, if console.log data, shows object tags. want manipulate form of returned data, when try console.log form, empty object. doing wrong? here code:

$.post('add', {'ajax':true}, function(data){     var $data = $(data);     console.log($data.find('form'));   }); 

look @ this example. works expected. maybe response not good?


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -