I found the code in google groups posted by Massimo Di Pierro:
<button onclick="jQuery('input[type=checkbox]').each(function(k){jQuery(this).attr('checked', 'checked');});">select all</button>
I create this question because based on previous question that I post here, what if I retrieve a record from the Student Master List that reach 500+ or 1000+ and the table I create has no Select All button? it's hard to click and click and click and so on... anyone know where I will put that code? so that it's easy to retrieve record if the table has a select all checkbox on it.