You should then try to parse the 'data' and then get it from it.But in my opinion, you should add some additional post params to the post request, say such as {'data': ''#div'} and then in some.php you can conditionally only return the contents of the div you want instead of the complete 'data'
Thanks & Regards, Dhruva Sagar. Charles de Gaulle<http://www.brainyquote.com/quotes/authors/c/charles_de_gaulle.html> - "The better I get to know men, the more I find myself loving dogs." On Tue, Aug 18, 2009 at 4:24 PM, Charlie <charlie...@gmail.com> wrote: > $.load() lets you get specific elements only like this $.load ("some.php > #div) > > I have not done this with a full $.ajax but since they are using same > jQuery, in your $.ajax try > > url: some.php #div > > ghost2008 wrote: > > Hello there, > > I am not sure, if this works. I make a function call with the ajax > option of jquery: > > $.ajax({ > type: "POST", > url: "some.php", > data: "name=test", > success: function(data){ > $("#div").html(data); > } > }); > > If I try this, the whole response data is shown in the specific #div. > Is there any possibility to load only the content of "#div" from > some.php? > > Thanks for your answers. > Regards > > > > >