Attaches the given behavior to the given jQuery selector.
Syntax
Smartsite SXML | 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.