Trait

io.scalajs.jquery

JQueryElement

Related Doc: package jquery

Permalink

trait JQueryElement extends Object with HTMLElement

JQuery Element

Annotations
@RawJSType() @native()
Linear Supertypes
HTMLElement, Element, ParentNode, Node, Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JQueryElement
  2. HTMLElement
  3. Element
  4. ParentNode
  5. Node
  6. Object
  7. Any
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def add(selector: |[|[HTMLElement, Selector], CSSSelector], context: HTMLElement): JQueryElement.this.type

    Permalink

    The add() method adds elements to an existing group of elements.

    The add() method adds elements to an existing group of elements.

    selector

    Required. Specifies a selector expression, a jQuery object, one or more elements or an HTML snippet to be added to an existing group of elements

    context

    Optional. Specifies the point in the document at which the selector expression should begin matching

    returns

    self reference

  5. def add(selector: |[|[Selector, CSSSelector], HTMLElement]*): JQueryElement.this.type

    Permalink

    Create a new jQuery object with elements added to the set of matched elements.

    Create a new jQuery object with elements added to the set of matched elements.

    selector

    could be any of the following:

    • selector: A string representing a selector expression to find additional elements to add to the set of matched elements.
    • elements: One or more elements to add to the set of matched elements.
    • html: An HTML fragment to add to the set of matched elements.
    • selection: An existing jQuery object to add to the set of matched elements..
  6. def addBack(selector: Selector = js.native): JQueryElement.this.type

    Permalink

    Add the previous set of elements on the stack to the current set, optionally filtered by a selector.

    Add the previous set of elements on the stack to the current set, optionally filtered by a selector.

    selector

    A string containing a selector expression to match the current set of elements against.

    returns

    self reference

  7. def addClass(className: |[String, Function2[Int, String, String]]): JQueryElement.this.type

    Permalink

    Adds one or more classes to the selected elements

    Adds one or more classes to the selected elements

    className

    One or more space-separated classes to be added to the class attribute of each matched element.

  8. def after(content: Any): JQueryElement.this.type

    Permalink

    Inserts content after the selected elements

    Inserts content after the selected elements

    content

    the specified content

  9. def animate(params: |[AnimateOptions, Any], speed: |[String, JsNumber] = js.native, callback: Function): JQueryElement.this.type

    Permalink

    The jQuery animate() method is used to create custom animations.

    The jQuery animate() method is used to create custom animations.

    params

    the given animation options / parameters

    speed

    The optional speed parameter can take the following values: "slow", "fast", or milliseconds.

    callback

    The optional callback parameter is a function to be executed after toggle() completes.

  10. def append(content: Any): JQueryElement.this.type

    Permalink

    Inserts content at the end of the selected elements

    Inserts content at the end of the selected elements

    content

    the specified content

  11. def append(content: String*): JQueryElement.this.type

    Permalink

    Insert content, specified by the parameter, to the end of each element in the set of matched elements.

    Insert content, specified by the parameter, to the end of each element in the set of matched elements.

    content

    the given HTML content

  12. def append(nodes: |[Node, String]*): JQueryElement.this.type

    Permalink
    Definition Classes
    ParentNode
  13. def appendChild(node: Node): Node

    Permalink
    Definition Classes
    Node
  14. def appendTo(target: |[|[String, Element], Array[_ <: Element]]): JQueryElement.this.type

    Permalink

    Insert every element in the set of matched elements to the end of the target.

    Insert every element in the set of matched elements to the end of the target.

    target

    A selector, element, HTML string, array of elements, or jQuery object; the matched set of elements will be inserted at the end of the element(s) specified by this parameter.

  15. def apply(index: Int): JQueryElement.this.type

    Permalink

    Retrieves the element at the given index

    Retrieves the element at the given index

    index

    the given index

    returns

    the element or null if not found

    Annotations
    @JSBracketAccess()
  16. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  17. def attr(name: String, function: Function2[Int, String, String]): JQueryElement.this.type

    Permalink

    The jQuery attr() method is also used to set/change attribute values.

    The jQuery attr() method is also used to set/change attribute values.

    name

    the name of the attribute to set

  18. def attr(name: String, value: |[String, JsNumber]): JQueryElement.this.type

    Permalink

    The jQuery attr() method is also used to set/change attribute values.

    The jQuery attr() method is also used to set/change attribute values.

    name

    the name of the attribute to set

  19. def attr(attributeName: String): JQueryElement.this.type

    Permalink

    Get the value of an attribute for the first element in the set of matched elements or set one or more attributes for every matched element.

    Get the value of an attribute for the first element in the set of matched elements or set one or more attributes for every matched element.

    attributeName

    the given attribute name

  20. def attr(name: |[String, Any]): String

    Permalink

    The jQuery attr() method is used to get attribute values.

    The jQuery attr() method is used to get attribute values.

    name

    the name of the attribute to get

    returns

    the attribute values.

  21. def attributes: NamedNodeMap[Attr]

    Permalink
    Definition Classes
    Node
  22. def before(content: Any): JQueryElement.this.type

    Permalink

    Inserts content before the selected elements

    Inserts content before the selected elements

    content

    the specified content

  23. def bind(events: Dictionary[Function]): JQueryElement.this.type

    Permalink

    Attach a handler to an event for the elements.

    Attach a handler to an event for the elements.

    events

    An object containing one or more DOM event types and functions to execute for them.

  24. def bind(event: String, preventBubble: Boolean): JQueryElement.this.type

    Permalink

    Attach a handler to an event for the elements.

    Attach a handler to an event for the elements.

    event

    A string containing one or more DOM event types, such as "click" or "submit," or custom event names.

    preventBubble

    Setting the third argument to false will attach a function that prevents the default action from occurring and stops the event from bubbling. The default is true.

  25. def bind(event: String, data: Any): JQueryElement.this.type

    Permalink

    Attach a handler to an event for the elements.

    Attach a handler to an event for the elements.

    event

    A string containing one or more DOM event types, such as "click" or "submit," or custom event names.

    data

    An object containing data that will be passed to the event handler.

  26. def bind(event: String, data: Any, preventBubble: Boolean): JQueryElement.this.type

    Permalink

    Attach a handler to an event for the elements.

    Attach a handler to an event for the elements.

    event

    A string containing one or more DOM event types, such as "click" or "submit," or custom event names.

    data

    An object containing data that will be passed to the event handler.

    preventBubble

    Setting the third argument to false will attach a function that prevents the default action from occurring and stops the event from bubbling. The default is true.

  27. def bind(event: String, data: Any = js.native, function: Function, map: Any = js.native): JQueryElement.this.type

    Permalink

    The bind() method attaches one or more event handlers for selected elements, and specifies a function to run when the event occurs.

    The bind() method attaches one or more event handlers for selected elements, and specifies a function to run when the event occurs.

    event

    Required. Specifies one or more events to attach to the elements. Multiple event values are separated by space. Must be a valid event.

    data

    Optional. Specifies additional data to pass along to the function

    function

    Required. Specifies the function to run when the event occurs

    map

    Specifies an event map ({event:function, event:function, ...}) containing one or more events to attach to the elements, and functions to run when the event occurs

  28. def blur(eventData: Any, handler: Function1[Event, Any]): JQueryElement.this.type

    Permalink

    Bind an event handler to the "blur" JavaScript event, or trigger that event on an element.

    Bind an event handler to the "blur" JavaScript event, or trigger that event on an element.

    eventData

    An object containing data that will be passed to the event handler.

    handler

    A function to execute each time the event is triggered.

  29. def blur(handler: Function1[Event, Any] = js.native): JQueryElement.this.type

    Permalink

    Bind an event handler to the "blur" JavaScript event, or trigger that event on an element.

    Bind an event handler to the "blur" JavaScript event, or trigger that event on an element.

    handler

    A function to execute each time the event is triggered.

  30. def blur(): Unit

    Permalink
    Definition Classes
    HTMLElement
  31. def change[A](callback: Function1[Event, A] = js.native): JQueryElement.this.type

    Permalink

    Bind an event handler to the "change" JavaScript event, or trigger that event on an element.

    Bind an event handler to the "change" JavaScript event, or trigger that event on an element.

    callback

    A function to execute each time the event is triggered.

  32. def checked: Boolean

    Permalink

    TODO

  33. def childElementCount: UnsignedLong

    Permalink
    Definition Classes
    ParentNode
  34. def childNodes[T <: Node]: NodeList[T]

    Permalink
    Definition Classes
    Node
  35. def children(selector: Selector = js.native): JQueryElement.this.type

    Permalink

    Get the children of each element in the set of matched elements, optionally filtered by a selector.

    Get the children of each element in the set of matched elements, optionally filtered by a selector.

    selector

    A string containing a selector expression to match elements against.

    returns

    self reference

  36. def children: HTMLCollection[Element]

    Permalink
    Definition Classes
    ParentNode
  37. def clearQueue(queueName: String = js.native): JQueryElement.this.type

    Permalink

    Remove from the queue all items that have not yet been run.

    Remove from the queue all items that have not yet been run.

    queueName

    A string containing the name of the queue. Defaults to fx, the standard effects queue.

  38. def click(callback: Function1[Event, Any] = js.native): JQueryElement.this.type

    Permalink

    The click event occurs when an element is clicked.

    The click event occurs when an element is clicked. The click() method triggers the click event, or attaches a function to run when a click event occurs.

    callback

    the callback/handler function

  39. def click(): Unit

    Permalink
    Definition Classes
    HTMLElement
  40. def clone(withDataAndEvents: Boolean = js.native): JQueryElement.this.type

    Permalink

    Create a deep copy of the set of matched elements.

    Create a deep copy of the set of matched elements.

    withDataAndEvents

    A Boolean indicating whether event handlers should be copied along with the elements. As of jQuery 1.4, element data will be copied as well.

  41. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. def cloneNode(deep: Boolean): JQueryElement.this.type

    Permalink
    Definition Classes
    Node
  43. def closest(element: Element): JQueryElement.this.type

    Permalink

    For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.

    For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.

    element

    An element to match elements against.

    returns

    self reference

  44. def closest(selector: Selector, context: |[Element, Any] = js.native): JQueryElement.this.type

    Permalink

    For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.

    For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.

    selector

    A string containing a selector expression to match elements against

    context

    An element to match elements against.

    returns

    self reference

  45. var contentEditable: String

    Permalink
    Definition Classes
    HTMLElement
  46. def contents(): JQueryElement.this.type

    Permalink

    Get the children of each element in the set of matched elements, including text and comment nodes.

  47. var contextMenu: HTMLMenuElement

    Permalink
    Definition Classes
    HTMLElement
  48. def css(propertyName: String, value: |[String, Double]): JQueryElement.this.type

    Permalink

    Sets or returns the style attribute

    Sets or returns the style attribute

    propertyName

    A CSS property name.

    value

    A value to set for the property.

  49. def css(propertyNames: Array[String]): String

    Permalink

    Get the computed style properties for the first element in the set of matched elements.

    Get the computed style properties for the first element in the set of matched elements.

    propertyNames

    An array of one or more CSS properties.

  50. def css(propertyName: String): String

    Permalink

    Get the computed style properties for the first element in the set of matched elements.

    Get the computed style properties for the first element in the set of matched elements.

    propertyName

    A CSS property name.

    returns

    the style property value

  51. def css(): String

    Permalink

    Get the value of a computed style property for the first element in the set of matched elements or set one or more CSS properties for every matched element.

    Get the value of a computed style property for the first element in the set of matched elements or set one or more CSS properties for every matched element.

    returns

    the CSS style

  52. def data(obj: Object): JQueryElement.this.type

    Permalink

    Store arbitrary data associated with the matched elements or return the value at the named data store for the first element in the set of matched elements

    Store arbitrary data associated with the matched elements or return the value at the named data store for the first element in the set of matched elements

    obj

    An object of key-value pairs of data to update.

  53. def data(key: String, value: Any): JQueryElement.this.type

    Permalink

    Store arbitrary data associated with the matched elements or return the value at the named data store for the first element in the set of matched elements.

    Store arbitrary data associated with the matched elements or return the value at the named data store for the first element in the set of matched elements.

    key

    A string naming the piece of data to set.

    value

    The new data value; this can be any Javascript type except undefined.

  54. def dataset: DOMStringMap

    Permalink
    Definition Classes
    HTMLElement
  55. def dequeue(queueName: String = js.native): JQueryElement.this.type

    Permalink

    Execute the next function on the queue for the matched elements.

    Execute the next function on the queue for the matched elements.

    queueName

    A string containing the name of the queue. Defaults to fx, the standard effects queue.

  56. def detach(selector: Any = js.native): JQueryElement.this.type

    Permalink

    Remove the set of matched elements from the DOM (AngularJS 1.4).

    Remove the set of matched elements from the DOM (AngularJS 1.4).

    selector

    A selector expression that filters the set of matched elements to be removed.

  57. def die(events: Any): JQueryElement.this.type

    Permalink

    A plain object of one or more event types, such as click or keydown and their corresponding functions that are no longer to be executed.

  58. def die(eventType: String, handler: Function1[Event, Any] = js.native): JQueryElement.this.type

    Permalink

    Remove event handlers previously attached using .live() from the elements.

    Remove event handlers previously attached using .live() from the elements.

    eventType

    A string containing a JavaScript event type, such as click or keydown.

    handler

    The function that is no longer to be executed.

  59. def die(): JQueryElement.this.type

    Permalink

    Remove event handlers previously attached using .live() from the elements.

  60. var dir: String

    Permalink
    Definition Classes
    HTMLElement
  61. def empty(): JQueryElement.this.type

    Permalink

    Removes the child elements from the selected element

  62. def eq(index: Int): JQueryElement.this.type

    Permalink

    Reduce the set of matched elements to the one at the specified index (AngularJS 1.4).

    Reduce the set of matched elements to the one at the specified index (AngularJS 1.4).

    index

    An integer indicating the position of the element, counting backwards from the last element in the set.

  63. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  64. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  65. def fadeIn(speed: |[String, Int] = js.native, callback: Function = js.native): JQueryElement.this.type

    Permalink

    The jQuery fadeIn() method is used to fade in a hidden element.

    The jQuery fadeIn() method is used to fade in a hidden element.

    speed

    The optional speed parameter can take the following values: "slow", "fast", or milliseconds.

    callback

    The optional callback parameter is a function to be executed after toggle() completes.

  66. def fadeOut(speed: |[String, Int] = js.native, callback: Function = js.native): JQueryElement.this.type

    Permalink

    The jQuery fadeOut() method is used to fade out a visible element.

    The jQuery fadeOut() method is used to fade out a visible element.

    speed

    The optional speed parameter can take the following values: "slow", "fast", or milliseconds.

    callback

    The optional callback parameter is a function to be executed after toggle() completes.

  67. def fadeToggle(speed: |[String, Int] = js.native, callback: Function = js.native): JQueryElement.this.type

    Permalink

    The jQuery fadeToggle() method toggles between the fadeIn() and fadeOut() methods.

    The jQuery fadeToggle() method toggles between the fadeIn() and fadeOut() methods.

    speed

    The optional speed parameter can take the following values: "slow", "fast", or milliseconds.

    callback

    The optional callback parameter is a function to be executed after toggle() completes.

  68. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  69. def find(element: Element): JQueryElement.this.type

    Permalink

    Get the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element.

    Get the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element.

    element

    An element or a jQuery object to match elements against.

    returns

    self reference

  70. def find(selector: Selector): JQueryElement.this.type

    Permalink

    Get the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element.

    Get the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element.

    selector

    A string containing a selector expression to match elements against.

    returns

    self reference

  71. def firstChild[T <: Node]: T

    Permalink
    Definition Classes
    Node
  72. def firstElementChild: Element

    Permalink
    Definition Classes
    ParentNode
  73. def focus(): Unit

    Permalink
    Definition Classes
    HTMLElement
  74. def getAttribute(name: String): String

    Permalink
    Definition Classes
    Element
  75. def getAttributeNS(namespace: String, name: String): Attr

    Permalink
    Definition Classes
    Element
  76. def getAttributeNode(name: String): Attr

    Permalink
    Definition Classes
    Element
  77. def getAttributeNodeNS(namespace: String, name: String): Attr

    Permalink
    Definition Classes
    Element
  78. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  79. def getElementsByTagName[T <: Element](name: String): HTMLCollection[T]

    Permalink
    Definition Classes
    Element
  80. def getElementsByTagNameNS[T <: Element](namespace: String, name: String): HTMLCollection[T]

    Permalink
    Definition Classes
    Element
  81. def hasAttribute(namespace: String, name: String): Boolean

    Permalink
    Definition Classes
    Element
  82. def hasAttribute(name: String): Boolean

    Permalink
    Definition Classes
    Element
  83. def hasAttributes(): Boolean

    Permalink
    Definition Classes
    Node
  84. def hasChildNodes(): Boolean

    Permalink
    Definition Classes
    Node
  85. def hasClass(className: String): Boolean

    Permalink

    Determine whether any of the matched elements are assigned the given class.

    Determine whether any of the matched elements are assigned the given class.

    className

    The class name to search for.

    returns

    true, if any of the matched elements are assigned the given class.

  86. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  87. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  88. def height(value: |[|[String, Double], Function]): JQueryElement.this.type

    Permalink

    Sets the height of an element (excludes padding, border and margin).

    Sets the height of an element (excludes padding, border and margin).

    value

    the given string, numeric or function value

  89. def height(): Integer

    Permalink

    Get the current computed height for the first element in the set of matched elements or set the height of every matched element.

    Get the current computed height for the first element in the set of matched elements or set the height of every matched element.

    returns

    the height of an element

  90. def hide(speed: |[String, Int] = js.native, callback: Function = js.native): JQueryElement.this.type

    Permalink

    Shows an invisible HTML element

    Shows an invisible HTML element

    speed

    The optional speed parameter can take the following values: "slow", "fast", or milliseconds.

    callback

    The optional callback parameter is a function to be executed after toggle() completes.

  91. def html(element: |[|[String, Element], Any]): JQueryElement.this.type

    Permalink

    Sets or returns the content of selected elements (including HTML markup)

    Sets or returns the content of selected elements (including HTML markup)

    element

    the element or value

  92. def html(): Element

    Permalink

    Sets or returns the content of selected elements (including HTML markup)

    Sets or returns the content of selected elements (including HTML markup)

    returns

    the element

  93. def innerHeight(value: |[|[String, Double], Function]): JQueryElement.this.type

    Permalink

    Set the CSS inner height of each element in the set of matched elements.

    Set the CSS inner height of each element in the set of matched elements.

    value

    the given string, numeric or function value

  94. def innerHeight(): Integer

    Permalink

    Get the current computed inner height (including padding but not border) for the first element in the set of matched elements or set the inner height of every matched element.

    Get the current computed inner height (including padding but not border) for the first element in the set of matched elements or set the inner height of every matched element.

    returns

    the computed inner height

  95. def innerWidth(value: |[|[String, Double], Function]): JQueryElement.this.type

    Permalink

    Set the CSS inner width of each element in the set of matched elements.

    Set the CSS inner width of each element in the set of matched elements.

    value

    the given string, numeric or function value

  96. def innerWidth(): Integer

    Permalink

    Get the current computed inner width (including padding but not border) for the first element in the set of matched elements or set the inner width of every matched element.

    Get the current computed inner width (including padding but not border) for the first element in the set of matched elements or set the inner width of every matched element.

    returns

    the computed inner width

  97. def insertBefore(newNode: Node, existingChild: Node): Node

    Permalink
    Definition Classes
    Node
  98. def is(function: Function): Boolean

    Permalink

    Check the current matched set of elements against a selector, element, or jQuery object and return true if at least one of these elements matches the given arguments.

    Check the current matched set of elements against a selector, element, or jQuery object and return true if at least one of these elements matches the given arguments.

    function

    A function used as a test for every element in the set. It accepts two arguments, index, which is the element's index in the jQuery collection, and element, which is the DOM element. Within the function, this refers to the current DOM element.

    returns

    true if at least one of these elements matches the given arguments.

  99. def is(selector: Selector): Boolean

    Permalink

    Check the current matched set of elements against a selector, element, or jQuery object and return true if at least one of these elements matches the given arguments.

    Check the current matched set of elements against a selector, element, or jQuery object and return true if at least one of these elements matches the given arguments.

    selector

    A string containing a selector expression to match elements against.

    returns

    true if at least one of these elements matches the given arguments.

  100. def isContentEditable: Boolean

    Permalink
    Definition Classes
    HTMLElement
  101. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  102. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  103. def isSupported(feature: String, version: String): Boolean

    Permalink
    Definition Classes
    Node
  104. var lang: String

    Permalink
    Definition Classes
    HTMLElement
  105. def lastChild: Node

    Permalink
    Definition Classes
    Node
  106. def lastElementChild: Element

    Permalink
    Definition Classes
    ParentNode
  107. def localName: String

    Permalink
    Definition Classes
    Node
  108. def namespaceURI: String

    Permalink
    Definition Classes
    Node
  109. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  110. def next(selector: Selector = js.native): JQueryElement.this.type

    Permalink

    Get the immediately following sibling of each element in the set of matched elements.

    Get the immediately following sibling of each element in the set of matched elements. If a selector is provided, it retrieves the next sibling only if it matches that selector.

    selector

    A string containing a selector expression to match elements against.

    returns

    self reference

  111. def nextAll(selector: Selector = js.native): JQueryElement.this.type

    Permalink

    Get all following siblings of each element in the set of matched elements, optionally filtered by a selector.

    Get all following siblings of each element in the set of matched elements, optionally filtered by a selector.

    selector

    A string containing a selector expression to match elements against.

    returns

    self reference

  112. def nextSibling: Node

    Permalink
    Definition Classes
    Node
  113. def nextUntil(selector: |[Selector, Node] = js.native, filter: String = js.native): JQueryElement.this.type

    Permalink

    Get all following siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object passed.

    Get all following siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object passed.

    selector

    A string containing a selector expression to indicate where to stop matching following sibling elements.

    filter

    A string containing a selector expression to match elements against.

    returns

    self reference

  114. def nodeName: String

    Permalink
    Definition Classes
    Node
  115. def nodeType: NodeType

    Permalink
    Definition Classes
    Node
  116. def nodeValue: Any

    Permalink
    Definition Classes
    Node
  117. def normalize(): Unit

    Permalink
    Definition Classes
    Node
  118. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  119. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  120. def off(events: String, selector: String = js.native, handler: Function1[Event, Unit] = js.native): JQueryElement.this.type

    Permalink

    Remove an event handler.

    Remove an event handler.

    events

    One or more space-separated event types and optional namespaces, or just namespaces, such as "click", "keydown.myPlugin", or ".myPlugin".

    selector

    A selector which should match the one originally passed to .on() when attaching event handlers.

    handler

    A handler function previously attached for the event(s), or the special value false.

  121. def offset(coordinates: |[|[Coordinates, Function], Object]): JQueryElement.this.type

    Permalink

    Set the current coordinates of every element in the set of matched elements, relative to the document.

    Set the current coordinates of every element in the set of matched elements, relative to the document.

    coordinates

    An object containing the properties top and left, which are numbers indicating the new top and left coordinates for the elements.

  122. def offset(): Coordinates

    Permalink

    Get the current coordinates of the first element in the set of matched elements, relative to the document.

    Get the current coordinates of the first element in the set of matched elements, relative to the document.

    returns

    the current coordinates of the first element in the set of matched elements

  123. def offsetParent(): JQueryElement.this.type

    Permalink

    Get the closest ancestor element that is positioned.

    Get the closest ancestor element that is positioned.

    returns

    self reference

  124. def on(events: String, selector: String = js.native, data: Any = js.native, handler: Function = js.native): JQueryElement.this.type

    Permalink

    Attach an event handler function for one or more events to the selected elements.

    Attach an event handler function for one or more events to the selected elements.

    events

    One or more space-separated event types and optional namespaces, such as "click" or "keydown.myPlugin".

    selector

    A selector string to filter the descendants of the selected elements that trigger the event. If the selector is null or omitted, the event is always triggered when it reaches the selected element.

    data

    Data to be passed to the handler in event.data when an event is triggered.

    handler

    A function to execute when the event is triggered. The value false is also allowed as a shorthand for a function that simply does return false.

  125. def one(events: String, data: Any = js.native, handler: Function1[Event, Unit] = js.native): JQueryElement.this.type

    Permalink

    Attach a handler to an event for the elements.

    Attach a handler to an event for the elements. The handler is executed at most once per element per event type.

    events

    One or more space-separated event types and optional namespaces, such as "click" or "keydown.myPlugin".

    data

    Data to be passed to the handler in event.data when an event is triggered.

    handler

    A function to execute at the time the event is triggered.

  126. def outerHeight(value: |[|[String, Double], Function]): JQueryElement.this.type

    Permalink
  127. def outerHeight(): Integer

    Permalink
  128. def outerWidth(value: |[|[String, Double], Function]): JQueryElement.this.type

    Permalink
  129. def outerWidth(): Integer

    Permalink
  130. def ownerDocument: Document

    Permalink
    Definition Classes
    Node
  131. def parent(selector: Selector = js.native): JQueryElement.this.type

    Permalink

    Get the parent of each element in the current set of matched elements, optionally filtered by a selector.

    Get the parent of each element in the current set of matched elements, optionally filtered by a selector.

    selector

    A string containing a selector expression to match elements against.

    returns

    self reference

  132. def parentNode: Node

    Permalink
    Definition Classes
    Node
  133. def parents(selector: Selector = js.native): JQueryElement.this.type

    Permalink

    Get the ancestors of each element in the current set of matched elements, optionally filtered by a selector.

    Get the ancestors of each element in the current set of matched elements, optionally filtered by a selector.

    selector

    A string containing a selector expression to match elements against.

    returns

    self reference

  134. def parentsUntil(selector: |[Selector, Node] = js.native, filter: String = js.native): JQueryElement.this.type

    Permalink

    Get the ancestors of each element in the current set of matched elements, up to but not including the element matched by the selector, DOM node, or jQuery object.

    Get the ancestors of each element in the current set of matched elements, up to but not including the element matched by the selector, DOM node, or jQuery object.

    selector

    Get the ancestors of each element in the current set of matched elements, up to but not including the element matched by the selector, DOM node, or jQuery object.

    filter

    A string containing a selector expression to match elements against.

    returns

    self reference

  135. def position(): Coordinates

    Permalink

    Get the current coordinates of the first element in the set of matched elements, relative to the offset parent.

    Get the current coordinates of the first element in the set of matched elements, relative to the offset parent.

    returns

    the current coordinates of the first element in the set of matched elements

  136. def prefix: String

    Permalink
    Definition Classes
    Node
  137. def prepend(fn: Function): JQueryElement.this.type

    Permalink

    Insert content, specified by the parameter, to the beginning of each element in the set of matched elements.

    Insert content, specified by the parameter, to the beginning of each element in the set of matched elements.

    fn

    A function that returns an HTML string, DOM element(s), or jQuery object to insert at the beginning of each element in the set of matched elements. Receives the index position of the element in the set and the old HTML value of the element as arguments. Within the function, this refers to the current element in the set.

  138. def prepend(content: |[|[|[String, HTMLElement], Text], Array[|[|[String, HTMLElement], Text]]]*): JQueryElement.this.type

    Permalink

    Insert content, specified by the parameter, to the beginning of each element in the set of matched elements.

    Insert content, specified by the parameter, to the beginning of each element in the set of matched elements.

    content

    One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert at the beginning of each element in the set of matched elements.

  139. def prepend(nodes: |[Node, String]*): JQueryElement.this.type

    Permalink
    Definition Classes
    ParentNode
  140. def prev(selector: Selector = js.native): JQueryElement.this.type

    Permalink

    Get the immediately preceding sibling of each element in the set of matched elements.

    Get the immediately preceding sibling of each element in the set of matched elements. If a selector is provided, it retrieves the previous sibling only if it matches that selector.

    selector

    A string containing a selector expression to match elements against.

    returns

    self reference

  141. def prevAll(selector: Selector = js.native): JQueryElement.this.type

    Permalink

    Get all preceding siblings of each element in the set of matched elements, optionally filtered by a selector.

    Get all preceding siblings of each element in the set of matched elements, optionally filtered by a selector.

    selector

    A string containing a selector expression to match elements against.

    returns

    self reference

  142. def prevUntil(selector: |[Selector, Node] = js.native, filter: String = js.native): JQueryElement.this.type

    Permalink

    Get all preceding siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object.

    Get all preceding siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object.

    selector

    Get all preceding siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object.

    returns

    self reference

  143. def previousSibling: Node

    Permalink
    Definition Classes
    Node
  144. def prop(name: String, value: Any): JQueryElement.this.type

    Permalink

    Set one or more properties for the set of matched elements.

    Set one or more properties for the set of matched elements.

    name

    The name of the property to set.

    value

    A value to set for the property.

  145. def prop(name: String, fn: Function2[Int, Any, Any]): JQueryElement.this.type

    Permalink

    Set one or more properties for the set of matched elements.

    Set one or more properties for the set of matched elements.

    name

    The name of the property to set.

    fn

    A function returning the value to set. Receives the index position of the element in the set and the old property value as arguments. Within the function, the keyword this refers to the current element.

  146. def prop(propertyName: String): Any

    Permalink

    Get the value of a property for the first element in the set of matched elements (AngularJS 1.6).

    Get the value of a property for the first element in the set of matched elements (AngularJS 1.6).

    propertyName

    The name of the property to get.

    returns

    the property value

  147. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  148. def queue(queueName: String = js.native): JQueryElement.this.type

    Permalink

    Show or manipulate the queue of functions to be executed on the matched elements.

    Show or manipulate the queue of functions to be executed on the matched elements.

    queueName

    A string containing the name of the queue. Defaults to fx, the standard effects queue.

  149. def ready(callback: Function): JQueryElement.this.type

    Permalink

    Specify a function to execute when the DOM is fully loaded.

    Specify a function to execute when the DOM is fully loaded.

    callback

    A function to execute after the DOM is ready.

  150. def remove(selector: Selector = js.native): JQueryElement.this.type

    Permalink

    Remove the set of matched elements from the DOM.

    Remove the set of matched elements from the DOM.

    selector

    A selector expression that filters the set of matched elements to be removed.

  151. def removeAttr(attributeName: String): JQueryElement.this.type

    Permalink

    Remove an attribute from each element in the set of matched elements.

    Remove an attribute from each element in the set of matched elements.

    attributeName

    An attribute to remove; as of AngularJS 1.7, it can be a space-separated list of attributes.

  152. def removeAttribute(name: String): Unit

    Permalink
    Definition Classes
    Element
  153. def removeAttributeNS(namespace: String, name: String): Unit

    Permalink
    Definition Classes
    Element
  154. def removeAttributeNode(attr: Attr): Attr

    Permalink
    Definition Classes
    Element
  155. def removeChild(oldNode: Node): Unit

    Permalink
    Definition Classes
    Node
  156. def removeClass(fn: Function): JQueryElement.this.type

    Permalink

    Remove a single class, multiple classes, or all classes from each element in the set of matched elements (AngularJS 1.4).

    Remove a single class, multiple classes, or all classes from each element in the set of matched elements (AngularJS 1.4).

    fn

    A function returning one or more space-separated class names to be removed. Receives the index position of the element in the set and the old class value as arguments.

  157. def removeClass(className: String = js.native): JQueryElement.this.type

    Permalink

    Remove a single class, multiple classes, or all classes from each element in the set of matched elements.

    Remove a single class, multiple classes, or all classes from each element in the set of matched elements.

    className

    One or more space-separated classes to be removed from the class attribute of each matched element.

  158. def removeData(list: Array[String] = js.native): JQueryElement.this.type

    Permalink

    Remove a previously-stored piece of data.

    Remove a previously-stored piece of data.

    list

    An array or space-separated string naming the pieces of data to delete.

  159. def removeData(name: String): JQueryElement.this.type

    Permalink

    Remove a previously-stored piece of data.

    Remove a previously-stored piece of data.

    name

    A string naming the piece of data to delete.

  160. def removeData(): JQueryElement.this.type

    Permalink

    Remove a previously-stored piece of data.

  161. def replaceChild(newChild: Node, existingChild: Node): Node

    Permalink
    Definition Classes
    Node
  162. def replaceWith(fn: Function): JQueryElement.this.type

    Permalink

    Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed.

    Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed.

    fn

    A function that returns content with which to replace the set of matched elements.

  163. def replaceWith(newContent: |[|[String, Element], Array[Element]]): JQueryElement.this.type

    Permalink

    Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed.

    Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed.

    newContent

    The content to insert. May be an HTML string, DOM element, array of DOM elements, or jQuery object.

  164. def scrollLeft(value: Double): JQueryElement.this.type

    Permalink

    The horizontal scroll position is the same as the number of pixels that are hidden from view above the scrollable area.

    The horizontal scroll position is the same as the number of pixels that are hidden from view above the scrollable area. Setting the scrollLeft positions the horizontal scroll of each matched element.

    value

    An integer indicating the new position to set the scroll bar to.

  165. def scrollLeft(): Integer

    Permalink

    Get the current horizontal position of the scroll bar for the first element in the set of matched elements or set the horizontal position of the scroll bar for every matched element.

  166. def scrollTop(value: Double): JQueryElement.this.type

    Permalink

    Set the current vertical position of the scroll bar for each of the set of matched elements.

    Set the current vertical position of the scroll bar for each of the set of matched elements.

    value

    A number indicating the new position to set the scroll bar to.

  167. def scrollTop(): Integer

    Permalink

    Get the current vertical position of the scroll bar for the first element in the set of matched elements or set the vertical position of the scroll bar for every matched element.

    Get the current vertical position of the scroll bar for the first element in the set of matched elements or set the vertical position of the scroll bar for every matched element.

    returns

    the current vertical position of the scroll bar

  168. def setAttribute(name: String, value: Any): Unit

    Permalink
    Definition Classes
    Element
  169. def setAttributeNS(namespace: String, name: String, value: Any): Unit

    Permalink
    Definition Classes
    Element
  170. def setAttributeNode(attr: Attr): Attr

    Permalink
    Definition Classes
    Element
  171. def setAttributeNodeNS(attr: Attr): Attr

    Permalink
    Definition Classes
    Element
  172. def show(speed: |[String, Int] = js.native, callback: Function = js.native): JQueryElement.this.type

    Permalink

    Hides a visible HTML element

    Hides a visible HTML element

    speed

    The optional speed parameter can take the following values: "slow", "fast", or milliseconds.

    callback

    The optional callback parameter is a function to be executed after toggle() completes.

  173. def siblings(selector: Selector = js.native): JQueryElement.this.type

    Permalink

    Get the siblings of each element in the set of matched elements, optionally filtered by a selector.

    Get the siblings of each element in the set of matched elements, optionally filtered by a selector.

    selector

    A string containing a selector expression to match elements against.

    returns

    self reference

  174. def slideDown(speed: |[String, Int] = js.native, callback: Function = js.native): JQueryElement.this.type

    Permalink

    The jQuery slideDown() method is used to slide down an element.

    The jQuery slideDown() method is used to slide down an element.

    speed

    The optional speed parameter can take the following values: "slow", "fast", or milliseconds.

    callback

    The optional callback parameter is a function to be executed after toggle() completes.

  175. def slideToggle(speed: |[String, Int] = js.native, callback: Function = js.native): JQueryElement.this.type

    Permalink

    The jQuery slideToggle() method toggles between the slideDown() and slideUp() methods.

    The jQuery slideToggle() method toggles between the slideDown() and slideUp() methods.

    speed

    The optional speed parameter can take the following values: "slow", "fast", or milliseconds.

    callback

    The optional callback parameter is a function to be executed after toggle() completes.

  176. def slideUp(speed: |[String, Int] = js.native, callback: Function = js.native): JQueryElement.this.type

    Permalink

    The jQuery slideUp() method is used to slide up an element.

    The jQuery slideUp() method is used to slide up an element.

    speed

    The optional speed parameter can take the following values: "slow", "fast", or milliseconds.

    callback

    The optional callback parameter is a function to be executed after toggle() completes.

  177. var style: CSSStyleDeclaration

    Permalink
    Definition Classes
    HTMLElement
  178. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  179. var tabIndex: String

    Permalink
    Definition Classes
    HTMLElement
  180. def tagName: String

    Permalink
    Definition Classes
    Element
  181. def text(value: |[String, Any]): JQueryElement.this.type

    Permalink

    Sets or returns the text content of selected elements

    Sets or returns the text content of selected elements

    value

    the value attribute

  182. def text(): String

    Permalink

    Sets or returns the text content of selected elements

    Sets or returns the text content of selected elements

    returns

    the value attribute of the selected elements.

  183. var title: String

    Permalink
    Definition Classes
    HTMLElement
  184. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  185. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  186. def toggle(speed: |[String, Int] = js.native, callback: Function = js.native): JQueryElement.this.type

    Permalink

    Toggles between the hide() and show() methods.

    Toggles between the hide() and show() methods.

    speed

    The optional speed parameter can take the following values: "slow", "fast", or milliseconds.

    callback

    The optional callback parameter is a function to be executed after toggle() completes.

  187. def toggleClass(className: String, state: |[Boolean, Function]): JQueryElement.this.type

    Permalink

    Add or remove one or more classes from each element in the set of matched elements, depending on either the class's presence or the value of the state argument.

    Add or remove one or more classes from each element in the set of matched elements, depending on either the class's presence or the value of the state argument.

    className

    One or more class names (separated by spaces) to be toggled for each element in the matched set.

    state

    A boolean value to determine whether the class should be added or removed.

  188. def toggleClass(handler: Function): JQueryElement.this.type

    Permalink

    Add or remove one or more classes from each element in the set of matched elements, depending on either the class's presence or the value of the state argument.

    Add or remove one or more classes from each element in the set of matched elements, depending on either the class's presence or the value of the state argument.

    handler

    the handler function

  189. def toggleClass(className: String): JQueryElement.this.type

    Permalink

    Add or remove one or more classes from each element in the set of matched elements, depending on either the class's presence or the value of the state argument.

    Add or remove one or more classes from each element in the set of matched elements, depending on either the class's presence or the value of the state argument.

    className

    One or more class names (separated by spaces) to be toggled for each element in the matched set.

  190. def triggerHandler(eventType: |[String, Event], extraParameters: Any = js.native): Object

    Permalink

    Execute all handlers attached to an element for an event.

    Execute all handlers attached to an element for an event.

    eventType

    A string containing a JavaScript event type, such as click or submit; or an event object

    extraParameters

    Additional parameters to pass along to the event handler.

    returns

    an Object

  191. def unbind(event: Event): JQueryElement.this.type

    Permalink

    Remove a previously-attached event handler from the elements.

    Remove a previously-attached event handler from the elements.

    event

    A jQuery.Event object.

  192. def unbind(eventType: String, handler: Function2[Int, String, String]): JQueryElement.this.type

    Permalink

    Remove a previously-attached event handler from the elements.

    Remove a previously-attached event handler from the elements.

    eventType

    A string containing a JavaScript event type, such as click or submit.

    handler

    The function that is to be no longer executed.

  193. def unbind(eventType: String, returnFalse: Boolean): JQueryElement.this.type

    Permalink

    Remove a previously-attached event handler from the elements.

    Remove a previously-attached event handler from the elements.

    eventType

    A string containing a JavaScript event type, such as click or submit.

    returnFalse

    Unbinds the corresponding 'return false' function that was bound using .bind( eventType, false ).

  194. def unbind(eventType: String): JQueryElement.this.type

    Permalink

    Remove a previously-attached event handler from the elements.

    Remove a previously-attached event handler from the elements.

    eventType

    A string containing a JavaScript event type, such as click or submit.

  195. def unbind(): JQueryElement.this.type

    Permalink

    Remove a previously-attached event handler from the elements.

  196. def val(value: Any): JQueryElement.this.type

    Permalink

    The val() method returns or sets the value attribute of the selected elements.

    The val() method returns or sets the value attribute of the selected elements.

    value

    the value attribute

  197. def val(): Any

    Permalink

    The val() method returns or sets the value attribute of the selected elements.

    The val() method returns or sets the value attribute of the selected elements.

    returns

    the value attribute of the selected elements.

  198. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  199. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  200. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  201. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  202. def width(value: |[String, JsNumber]): JQueryElement.this.type

    Permalink

    Sets the width of an element (excludes padding, border and margin).

    Sets the width of an element (excludes padding, border and margin).

    value

    the desired width of an element

  203. def width(): Integer

    Permalink

    Returns the width of an element (excludes padding, border and margin).

    Returns the width of an element (excludes padding, border and margin).

    returns

    the width of an element

  204. def wrap(function: Function): JQueryElement.this.type

    Permalink

    Wrap an HTML structure around each element in the set of matched elements.

    Wrap an HTML structure around each element in the set of matched elements.

    function

    A callback function returning the HTML content or jQuery object to wrap around the matched elements. Receives the index position of the element in the set as an argument. Within the function, this refers to the current element in the set.

  205. def wrap(wrappingElement: |[Selector, Element]): JQueryElement.this.type

    Permalink

    Wrap an HTML structure around each element in the set of matched elements.

    Wrap an HTML structure around each element in the set of matched elements.

    wrappingElement

    A selector, element, HTML string, or jQuery object specifying the structure to wrap around the matched elements. When you pass a jQuery collection containing more than one element, or a selector matching more than one element, the first element will be used.

Inherited from HTMLElement

Inherited from Element

Inherited from ParentNode

Inherited from Node

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped