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
Post a Comment