rename_element
static
void
rename_element
(
pElement
,
pSuffix
,
pDeep
)
Rename an element, by adding a suffix, and its dependants, if applicable.
For instance, some form field might have labels associated with it; this function
will also adjust the "for" attribute of the label.
- Parameters:
-
pElement <jquery object>
the element to rename. -
pSuffix <string>
the suffix to add to the object's name. -
pDeep <boolean>
also rename all the object's children?
- Returns:
void