Quantcast
Viewing all articles
Browse latest Browse all 6517

New Post: Global complex to simple lookups fields from the master page.

If the selector doesn't return any elements, the .each() won't happen, so it won't loop. I'm not positive that your way isn't slightly more efficient, but it's not necessary.

I generally do a variable assignment like you are doing if I'm going to use the collection more than once. Otherwise, I just use the selector directly.

M.

Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>