Is there any difference between $(\".selector\").size() and $(\".selector\").length ?
$(\".selector\").size()
$(\".selector\").length
They will both give you the same result but .length is slightly faster.
See http://api.jquery.com/size/:
The .length property is a slightly faster way to get this information.