The notation you are using already appears to be a class search because you are using a period. If you are searching by "id" you should use a "#" symbol. Like Bear said you should give them all the same class and then hide them. Keep in mind that this class can just be for your searching convenience and does not need to style the divs. Also, the nice thing about classes is that you can put multiple in the class tag. So, if you have a real styling class there you can keep it and it just sits alongside your "search class". For example.