Trilium Backend API
    Preparing search index...
    • Removes one or more space-separated classes from the selected elements. If no className is defined, all classes will be removed. Also accepts a function.

      Type Parameters

      Parameters

      • this: R
      • Optionalname: string | ((this: Element, i: number, className: string) => string)

        Name of the class. If not specified, removes all elements.

      Returns R

      The instance itself.

      $('.pear').removeClass('pear').prop('outerHTML');
      //=> <li class="">Pear</li>

      $('.apple').addClass('red').removeClass().prop('outerHTML');
      //=> <li class="">Apple</li>