title: Jquery - Should I not repeat selectors (store in a variable)?
body: <p>There are some times when I find myself repeating a selector several times. Should I be somehow storing a jquery object to a variable and then just using that one? As a quick example, what about the following?:</p>
  
  <pre><code>$('a.contactus').css('padding', '10px');
  $('a.contactus').css('margin', '4px');
  $('a.contactus').css('display', 'block');
  </code></pre>
  
  <p>Now I know this isn't a great example, since effectively you could just chain each css function. But suppose in between each of those was a conditional statement or something to stop you from chaining.</p>
  
  <p>Can I store a jquery object in a variable? And if so, when should I / can I?</p>