Instead of using each use the jquery method on the selector