I've been using the data method for this, you need to pass a DOM
element though:

var uuid = $.data(el);

--Klaus



On 6 Mrz., 03:48, Mike Alsup <mal...@gmail.com> wrote:
> >       What do you recommend to generate UUID with jQuery ?
>
> >       Thank you !
>
> I've been using something like this:
>
> function uid() {
>     var result='';
>     for(var i=0; i<32; i++)
>         result += Math.floor(Math.random()*16).toString(16).toUpperCase
> ();
>     return result
>
> }
>
>

Reply via email to