Edit in GitHubLog an issue

HTMLOptionElement

Extends: HTMLElement

See: https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement

new HTMLOptionElement(document, nodeName, namespaceURI)

Creates an instance of HTMLOptionElement.

ParamType
document
\*
nodeName
\*
namespaceURI
\*

htmlOptionElement.value : string

htmlOptionElement.dataset

Access to all the custom data attributes (data-*) set.

See: https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/dataset

htmlOptionElement.nodeName : string

Read only

htmlOptionElement.localName : string

Read only

htmlOptionElement.tagName : string

Read only

htmlOptionElement.nodeType : number

Read only

htmlOptionElement.namespaceURI : string

Read only

htmlOptionElement.id : string

htmlOptionElement.tabIndex : number

htmlOptionElement.className : string

htmlOptionElement.attributes : NamedNodeMap

Read only

htmlOptionElement.style : Style

Read only

htmlOptionElement.clientLeft : number

Read only

htmlOptionElement.clientTop : number

Read only

htmlOptionElement.clientWidth : number

Read only

htmlOptionElement.clientHeight : number

Read only

htmlOptionElement.height : string | Number

The height of the element

htmlOptionElement.width : string | Number

The width of the element

htmlOptionElement.offsetParent : Element

Read only

htmlOptionElement.offsetLeft : number

Read only

htmlOptionElement.offsetTop : number

Read only

htmlOptionElement.offsetWidth : number

Read only

htmlOptionElement.offsetHeight : number

Read only

htmlOptionElement.scrollLeft : number

htmlOptionElement.scrollTop : number

htmlOptionElement.scrollWidth : number

Read only

htmlOptionElement.scrollHeight : number

Read only

htmlOptionElement.uxpContainer : UXPContainer

Read only

htmlOptionElement.disabled : boolean

htmlOptionElement.innerHTML : string

htmlOptionElement.outerHTML : string

htmlOptionElement.contentEditable

Read only

htmlOptionElement.isConnected : boolean

Read only

htmlOptionElement.parentNode : Node

Read only

htmlOptionElement.parentElement : Element

Read only

htmlOptionElement.firstChild : Node

Read only

htmlOptionElement.lastChild : Node

Read only

htmlOptionElement.previousSibling : Node

Read only

htmlOptionElement.nextSibling : Node

Read only

htmlOptionElement.firstElementChild : Node

Read only

htmlOptionElement.lastElementChild : Node

Read only

htmlOptionElement.previousElementSibling : Node

Read only

htmlOptionElement.nextElementSibling : Node

Read only

htmlOptionElement.textContent : string

htmlOptionElement.childNodes : NodeList

Read only

htmlOptionElement.children : HTMLCollection

Read only

htmlOptionElement.ownerDocument

Read only

htmlOptionElement.scrollIntoView()

htmlOptionElement.scrollIntoViewIfNeeded()

htmlOptionElement.focus()

htmlOptionElement.blur()

htmlOptionElement.getAttribute(name)

ParamType
name
string

htmlOptionElement.setAttribute(name, value)

ParamType
name
string
value
string

htmlOptionElement.removeAttribute(name)

ParamType
name
string

htmlOptionElement.hasAttribute(name)

ParamType
name
string

htmlOptionElement.getAttributeNode(name)

ParamType
name
string

htmlOptionElement.setAttributeNode(newAttr)

ParamType
newAttr
\*

htmlOptionElement.removeAttributeNode(oldAttr)

ParamType
oldAttr
\*

htmlOptionElement.click()

htmlOptionElement.getElementsByClassName(name)

ParamType
name
string

htmlOptionElement.getElementsByTagName(name)

ParamType
name
string

htmlOptionElement.querySelector(selector)

ParamType
selector
string

htmlOptionElement.querySelectorAll(selector)

ParamType
selector
string

htmlOptionElement.getBoundingClientRect()

htmlOptionElement.insertAdjacentHTML(position, value)

ParamType
position
value
string

htmlOptionElement.insertAdjacentElement(position, node)

ParamType
position
\*
node
\*

htmlOptionElement.insertAdjacentText(position, text)

ParamType
position
\*
text
\*

htmlOptionElement.hasChildNodes()

htmlOptionElement.cloneNode(deep)

ParamType
deep
boolean

htmlOptionElement.appendChild(child)

ParamType
child

htmlOptionElement.insertBefore(child, before)

ParamType
child
before

htmlOptionElement.replaceChild(newChild, oldChild)

ParamType
newChild
oldChild

htmlOptionElement.removeChild(child)

ParamType
child

htmlOptionElement.remove()

htmlOptionElement.before(...nodes)

ParamType
...nodes

htmlOptionElement.after(...nodes)

ParamType
...nodes

htmlOptionElement.replaceWith(...nodes)

ParamType
...nodes

htmlOptionElement.contains(node)

ParamType
node

htmlOptionElement.addEventListener(eventName, callback, [capture])

ParamTypeDefault
eventName
\*
callback
\*
[capture]
boolean
false

htmlOptionElement.removeEventListener(eventName, callback, [capture])

ParamTypeDefault
eventName
\*
callback
\*
[capture]
boolean
false

htmlOptionElement.dispatchEvent(event)

ParamType
event
\*
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.