This documentation is currently being moved to our new documentation site.

Please view or edit the documentation there, instead.

If you're looking for Fluid Project coordination, design, communication, etc, try the Fluid Project Wiki.



Allocate an id to the supplied element if it has none already, by a simple scheme resulting in ids "fluid-id-nnnn" where nnnn is an increasing integer.


File name: Fluid.js


element (Element) The element to place the id on.

Return Value

String representing the id


var titleId = fluid.allocateSimpleId(title);

In this example, the string returned, titleId will be added as the id attribute to the title node.