js/pgnvjs.js
/**
     * Remove a class from an element.
     */
Remove a class from an element.
Remove a class from an element .
function removeClass(elementOrId, className) {
        let ele = utils.pvIsElement(elementOrId) ? elementOrId : document.getElementById(elementOrId);
        if (ele === null) return;
        if (ele.classList) {
            ele.classList.remove(className);
        } else {
            ele.className = el.className.replace(new RegExp('(^|\\b)' + className.split(' ').join('|') + '(\\b|$)', 'gi'), ' ');
        }
    }
function removeClass ( elementOrId , className ) { let ele = utils . pvIsElement ( elementOrId ) ? elementOrId : document . getElementById ( elementOrId ) ; if ( ele === null ) return ; if ( ele . classList ) { ele . classList . remove ( className ) ; } else { ele . className = el . className . replace ( new RegExp ( '(^|\\b)' + className . split ( ' ' ) . join ( '|' ) + '(\\b|$)' , 'gi' ) , ' ' ) ; } }
Remove a class from an element.
Remove a class from an element .