htmlelement-extension
v0.8.13
Published
Add functionalities to HTMLElement, HTMLInputElement, HTMLTextareaElement, HTMLFormElement, HTMLSelectElement, document, window
Downloads
28
Maintainers
Readme
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