cloned elements lose initial 'display' state for show() / hide()
I cloned an element and children, I then ran .hide() on a bunch of the sub elements.
Then I adjusted all their ids to "[originalid]+'_'+[incrementing number]"
Then later I ran .show() on the sub elements, and they do not get restored to their initial display: inline state (as per the clone).
If I adjust the ids *first* and then do the .hide() it seems to behave as expected.
So I guess I am wondering if this is a known behaviour, that jQuery 'loses track' of initial states of elements if you change their id?
Is there a way to force jQuery to 'reindex' its internal storage of data about elements?
Thanks.