For javascript gurus: get an array of tr attributes

this works ! thanks !
even better is :

var myArr = $("#mytable tr").map(function (){
    return parseInt(this.getAttribute("rowid")); // returns an array
 });

so I get my array of integers instead of strings

can you explain me the difference between :

and

which gives completely different results !