Hi all, I have been trying to find a way to do this in jQuery but am a little stuck.
Basically, due to a CMS we use, we can't enter IDs for any elements in the HTML code, but we can add classes and say a rel tag. We are wanting to build a tabbed layout using jQuery, but obviously this would require elements with IDs for a straightforward solution. How can I make jQuery read say this code: <div rel="tab-1"></div> <div rel="tab-2"></div> and replace the 'rel' with 'id' ? Or is this asking too much? Many thanks in advance, Simon