@LaurentGoderre jQuery function calls are expensive (even for attribute calls) both in terms of memory and processing time. Much better to incur the cost only once, even if it means the cached variable resides in memory a little longer.