`row` otoh is a "pure" DOM object. You could instead do `$(this).parent().parent()` which in this example would be more correct to be more consistent with the rest of the code. You should only (imho) use pure javascript if you need to optimize some repetitive call, because jQuery takes care of most browser/javascript differences.