Findng all ID in the document

Findng all ID in the document

Hi there.

I'm new to jQuery.

How can I find all #ID in the document and do something with them? In my case - for more coplicated resons my document has mulitple #ID with same name.

e.g.

  1. $("#TableClass2").removeAttr('id').addClass("TableClass2");

works fine - but with first #ID only.

Any suggestions will be much appreciated.

Regards,