.uniqueId()Returns: jQuery
Description: Generate and apply a unique id for the set of matched elements.
-
version added: 1.9.uniqueId()
- This method does not accept any arguments.
Many widgets need to generate unique ids for elements. .uniqueId()
will check if the element has an id, and if not, it will generate one and set it on the element. It is safe to call .uniqueId