At the moment this is my code: $('#content_main div.weblog_archive li a').click(function() { $('<div class="weblog_articles_ajax"></ div>').insertAfter('div.article').load(this.href); $('div.weblog_articles_ajax div.article').livequery(function() { $(this).html(); }); return false });
You can see it in action over here: http://ischagast.nl/janhekmanschool/nieuwsbrief/archief/ It's loading the whole page but now I only want that div.article to be loaded. I think I am doing something wrong over here: $('div.weblog_articles_ajax div.article').livequery(function() { $(this).html(); }); On May 28, 10:45 am, Sid <[EMAIL PROTECTED]> wrote: > Load the entire page and then parse it with > > $("#div_you_want").html(); > > This will return everything within div_you_want including HTML tags. > > Use .text() if you need only the text stripped of HTML. > > Note: Since ur loading the page dynamically, jQuery will not > automatically update the DOM, so use a plugin like liveQuery, in which > case it will be > > $("#div_you_want").livequery(function() { > $(this.id).html/text(); > > });IschaGastwrote: > > I have a page with an archive of all newsletters: > >http://ischagast.nl/janhekmanschool/nieuwsbrief/archief/ > > > What I want is that when clicking a month the results of that month > > appear under the months just like this site: > >http://loweblog.com/archives/ > > > I thought building that with jquery would be simple, something like > > this: > > > $('#content_main div.weblog_archive li a').click(function() { > > $('div.article').load(this.href); > > return false > > }); > > > This works good but I only want to load the div.article and thats > > something I could not get to work. > > I thought maybe something like this could work but it does not: > > > .load(this.href + "div.article"); > > > What works?