I hope someone can help a newbie out here...

I've put some jQuery together to load part of my pages after my page
is ready. It works fine, but I'm wondering if there is a better way.

In my HTML I've got something like:

<div class='progressive' href='my uri path to load something'></div>

Then my javascript is like this:

function load_progressives() {
        $(".progressive").each(function(n) {
                var wrapset = $(".progressive").slice(n)
                wrapset.load(wrapset.attr('href'))
        });
}

$(function() {
        load_progressives();
});

I would have thought I could do this as a one-liner, but this is the
best a newbie can figure out.

Reply via email to