examples: |
jt_.cssClass.add(document.getElementById('section_1'), 'hideRight'); jt_.cssClass.rem(document.getElementById('section_1'), 'hideRight'); jt_.cssClass.rem(document.getElementById('section_1'), 'hideRight'); |
description: |
Methods to manipulate multiple CSS classNames assigned to a single DOM object.
50 lines of code, 0.98 KB |
main methods: |
add: function(elm, className) // add 'className' rem: function(elm, className) // remove 'className' rpl: function(elm, remClassName, addClassName) // replace 'remClassName' with 'addClassName' asObj: function(elm) // convert list of classNames for 'elm' to JS object asStr: function(obj) // convert JS object of classNames ('obj') to string |