Hi y'all,

Please look at this code:

$('ul#navigation li ul li>a').click(function(){
        var active = $(this).text();
        $('#artcontent p').empty();
        $.ajax({
                type: 'POST',
                url: 'homepage/readarticle',
                data: $(active).serialize(),
                success: function(databack){
                   $('#artcontent').append(databack);
                   }
                })
        });

I have a ul li a that are children of parent ul navigation and li.
what I am trying to do is to load an article page. This works but it
reads the database and loads all the articles in my database instead
of the one identified by active. I would like to know what I am doing
wrong or is there a better way to go about this?

Reply via email to