Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
Div
classapi-page

fluid.allocateSimpleId(element)

Section
Column
width70%

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.

Code Block
javascript
javascript
bgColorwhite
borderStylenonejavascript
fluid.allocateSimpleId(element);

File name: Fluid.js

Parameters

Span
classborderless-table

element

(Element) The element to place the id on.

Return Value

Span
classborderless-table

String

representing the id

Column
width5%

Column

See Also


Example

Code Block
javascript
javascript
var titleId = fluid.allocateSimpleId(title);

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