Caching jQuery

Caching jQuery

Hi,

I was wondering is it possible to cache the api of jQuery because I am using the same api every time for multiple elements?

For example.
  1. $("#id1").css("display","none");
  2. $("#id2").css("display","none");
  3. $("#id3").css("display","none");
  4. $("#id4").css("display","none");
  5. $("#id5").css("display","none");
I know that you can assign all the selectors to one api, however I have a script which checks the url for specific words, so I was wondering is it possible to cache the api to improve performance?