Documentation

BX.selectUtils.*

Handling of lists (select).

Method Description
BX.selectUtils.addNewOption Adds a new value to the existing list. Adds a new value to the existing list. Parameters:
Parameter Description
DOMNode node DOM element
string value element value
string name element name
boolean sort sorting after the adding (false by default)
boolean unique duplication check (true by default)
BX.selectUtils.addNewOption(DOMNode node, string value) Deletes the specified value from the specified list.
BX.selectUtils.deleteSelectedOptions(DOMNode node) Deletes from the specified list all selected values.
BX.selectUtils.deleteAllOptions(DOMNode node) Deletes from the specified list all values.
BX.selectUtils.sortSelect(DOMNode node) Sorts the specified list.
BX.selectUtils.selectAllOptions(DOMNode node) Selects all values of the specified list.
BX.selectUtils.selectOption(DOMNode node, string value) Selects the specified value of the specified list.
BX.selectUtils.moveOptionsUp(DOMNode node) Moves the selected values of the specified list for one position up.
BX.selectUtils.moveOptionsDown(DOMNode node) Moves the selected values the specified list for one position down.


© «Bitrix24», 2001-2024
Up