Jump to content
14/12/2011
A great way to keep track of your cached jquery selectors (I think I picked this up from Alex Sexton) is to prefix the var names with a $. This makes it much easier to remember:
var $elem = $(”#foo”).find(”.bar”);
Vote down?
14/12/2011
A great way to keep track of your cached jquery selectors (I think I picked this up from Alex Sexton) is to prefix the var names with a $. This makes it much easier to remember:
var $elem = $(”#foo”).find(”.bar”);