A quick Google search should give you a JS function that can return a GUID type string that can be used as an ID. Here's a snippet I modified for a custom object I needed once:
//create a GUID type identifier. //NOTE: note truely unique, but duplicates are unlikely. // based on code found at : // http://blog.shkedy.com/2007/01/createing-guids-with-client-side.html generateGuid : function (obj) { var result, i, j; result = ""; while (!j || this.guids[result]) { result = ""; for(j=0; j<32; j++) { if( j == 8 || j == 12|| j == 16|| j == 20) { result = result + "-"; } i = Math.floor(Math.random()*16).toString(16).toUpperCase(); result = result + i; } } //Add the GUID to our master index this.guids[result] = obj; return result } Shawn Guy Fraser 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