Trying to change the href attribute of .load(ed) content.

Trying to change the href attribute of .load(ed) content.

I'm pretty green to jQuery. I have a .load() calling in some content that has some links within it.  After that content is loaded, am I able to change the attributes of those links?

This is how I'm loading in the content:

$(".maincontent").load(pages[0] + '?' + tsTimeStamp + ' .maincontent');

Which contains:
    <a class="table_button0" href="#"></a>
    <a class="table_button1" href="#"></a>
    <a class="table_button2" href="#"></a>
    <a class="table_button3" href="#"></a>
    <a class="table_button4" href="#"></a>
    <a class="table_button5" href="#"></a>
    <a class="table_button6" href="#"></a>
    <a class="table_button7" href="#"></a>







And I'm trying to change the hrefs of that loaded content by doing this after the .load():

for(i=0;i<=pages_size;i++){

$(".table_button" + i).attr("href",pages[i]);

}

But it doesn't seem to be taking affect.

Thanks!