Anastasia Cheetham
Oct 01, 2010
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.
fluid.allocateSimpleId(element);
File name: Fluid.js
Fluid.js
element
(Element) The element to place the id on.
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.
titleId
id
title