JQuery cannot get displaytag attributes?

JQuery cannot get displaytag attributes?

I'm displaying a table using the displaytag library. (display:table)
Displaytag doesn not give you the option of using pagination as well as have an "All" option, so I'm trying to use JQuery to help me out.

I added an option in the pagination select dropdown for "All", and I wanted to use JQuery for the onchange event to set the size of the current page to the total number of results, in essence displaying "All" results.

Displaytag continues to tell me that whatever attribute I'm trying to access just isn't there. Has anyone tried to get attributes from this before? Is it even possible?

$('itemsPerPageForm').change(function() {
   if (this.value == 'All') {
       alert($('#myTable').get(0).attr('pagesize');
   };
});