The jQuery size() method returns the number of elements in the jQuery object (and is deprecated), so that's probably not what you meant to call. Maybe this is what you meant:
$('#MainContent_cbSort').hover(function(){
$(this).attr('size', 2);
},function(){
$(this).removeAttr('size');
});