Attaches the given behavior to the given jQuery selector.

Syntax

Smartsite SXML CopyCode image Copy Code
smartlet.behavior.attach(string behaviorName)
smartlet.behavior.attach(string selector, string behaviorName)
smartlet.behavior.attach(string selector, string behaviorName, any[ ] settings)

Parameters

Name Data Type Description
behaviorName String Name of the behavior.
selector String The jQuery selector.
settings Any[ ] The behavior settings.

Return Value

None.

Expand image See Also

SXML