Newbie with question

Newbie with question

I am a newbie who has started using JQuery last week.  My question is in regards to JQuery Scope.

I am making an JQuery .load call when a user clicks on a button.  Instead of calling an HTML page I am calling a struts action class which will forward to an JSP page.  All this works great.  The returning JSP is basically a simple table  that gets injected into another <div id=> tag which is defined in my main page.  After all this happens I am trying to apply zebra strips to the table.  This is not working and I'm wondering if it is because I have lost scope from injecting a jsp page.

In the new jsp page that is injected I have defined a script tag which has the following code.  this references the even and odd classes in my main page.
$(function() {
        $('#striped').addClass("even");
        $('#striped tr:odd').addClass("odd");
    });

Doing this makes my table stripped but I'm wondering why I can't define it in the call back method in the main page?  Does it not have scope into the injected jsp page that gets generated?

I hope all this makes sense as I'm new to the language.
Thanks
Bit