Have ideas to improve npm?Join in the discussion! »

    htmlelement-extension

    0.8.13 • Public • Published

    # htmlelement-extension

    The lastest version of this document is available on Github > HTMLElementExtension

    HTMLElement

    - addClass
    - attr
    - removeClass
    - toggleClass
    - css
    - appendTo
    - outerHeight
    - outerWidth
    - hide
    - show
    - isVisible
    - toggleVisible
    - html
    - offset
    - outerHtml
    - outerWidth
    - outerHeight
    - text
    - before
    - after
    - append
    - prepend
    - qs   ~ querySelector
    - qsa  ~ querySelectorAll
    

    Note Deprecated: on & off functions will be moved in the module htmlelement-events-extension

    HTMLTextareaElement

    - val
    - insertAtCaret
    - setNoChanges
    - isModified
    

    HTMLFormElement

    - val
    - setInputs
    

    HTMLInputElement

    - val
    - toTextBox
    - toPasswordBox
    - togglePassword
    - setNoChanges
    - isModified
    

    HTMLSelectElement

    - val
    - setNoChanges
    - isModified
    - fill
    - load
    

    document

    - ready
    - getJSON
    - ajax
    - getScripts
    - getScriptsIf
    - getStyles
    

    window

    - newElement
    - qs        ~ document.querySelector
    - qsa       ~ document.querySelectorAll
    - qsi       ~ document.querySelector byId (no need #)
    - qsn       ~ document.querySelector byName (no need [name='xxx'])
    - qsnames   ~ document.querySelectorAll byName (no need [name='xxx'])
    

    NodeList

    - addClass
    - removeClass
    - toggleClass
    - css
    - show
    - remove
    

    Usage

    API & DEMO

    Install

    npm i htmlelement-extension

    DownloadsWeekly Downloads

    5

    Version

    0.8.13

    License

    MIT

    Unpacked Size

    46 kB

    Total Files

    10

    Last publish

    Collaborators

    • avatar