General Introduction
BX
BX.extend
BX.message
BX.bitrix_sessid
BX.create
BX.adjust
BX.addClass/BX.removeClass
BX.focus
BX.isNodeHidden
BX.scrollToNode
BX.selectUtils.*
BX.setOpacity
BX.setUnselectable/BX.setSelectable
BX.toggleClass
BX.width/BX.height
BX.cleanNode
BX.hasClass
BX.style
BX.remove
Search functions
BX.toggleClass
DOMNode BX.toggleClass( DOMNode node, string|array className );
The function toggles the availability/absence of className CSS-class for the node or rotates CSS-classes, if the className – array.
Examples
BX.ready(function(){ BX.bind(BX("test"), "click", function() { BX.toggleClass(BX("test"), ["arrowUp", "arrowDown"]); }); })
© «Bitrix24», 2001-2024
Up