Bah... Test if there's something in a document.getElementById( your_id ). If there is, choose another id, if not, go on.
No? On Dec 24, 12:18 am, Guy Fraser <[EMAIL PROTECTED]> wrote: > > On Dec 23, 5:09 am, dn2965 <[EMAIL PROTECTED]> wrote: > > >> hello everyone > >> i want to know a way to general unique id for new append element. like > >> EXT's .id(); > > I don't think there is any equivalent in jQuery at present. It would be > useful though as I've had several occasions myself when such a feature > would be useful. > > For anyone not familiar with the feature in Ext, it basically gives you > a guaranteed unique ID (ie. checks there are no other ids or names with > same value in the document). > > Guy