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(element: |[|[|[Element, Selector], CSSSelector], Any], context: |[Element, Any] = js.native): 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.

    element

    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 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

  6. 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.

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

    Permalink

    Inserts content after the selected elements

    Inserts content after the selected elements

    content

    the specified content

  8. 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.

  9. 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

  10. 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

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

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

    Permalink
    Definition Classes
    Node
  13. 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.

  14. 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()
  15. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  16. 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

  17. 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

  18. 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

  19. 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.

  20. def attributes: NamedNodeMap[Attr]

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

    Permalink

    Inserts content before the selected elements

    Inserts content before the selected elements

    content

    the specified content

  22. 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.

  23. 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.

  24. 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.

  25. 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.

  26. 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

  27. 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.

  28. 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.

  29. def blur(): Unit

    Permalink
    Definition Classes
    HTMLElement
  30. def change(callback: Function1[Event, Any] = 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.

  31. def checked: Boolean

    Permalink

    TODO

  32. def childElementCount: UnsignedLong

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

    Permalink
    Definition Classes
    Node
  34. 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

  35. def children: HTMLCollection[Element]

    Permalink
    Definition Classes
    ParentNode
  36. 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.

  37. 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

  38. def click(): Unit

    Permalink
    Definition Classes
    HTMLElement
  39. 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.

  40. def clone(): AnyRef

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

    Permalink
    Definition Classes
    Node
  42. 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

  43. 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

  44. var contentEditable: String

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

    Permalink

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

  46. var contextMenu: HTMLMenuElement

    Permalink
    Definition Classes
    HTMLElement
  47. 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.

  48. 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.

  49. 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

  50. 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

  51. 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.

  52. 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.

  53. def dataset: DOMStringMap

    Permalink
    Definition Classes
    HTMLElement
  54. 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.

  55. 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.

  56. 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.

  57. 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.

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

    Permalink

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

  59. var dir: String

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

    Permalink

    Removes the child elements from the selected element

  61. 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.

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  64. 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.

  65. 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.

  66. 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.

  67. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  68. 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

  69. 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

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

    Permalink
    Definition Classes
    Node
  71. def firstElementChild: Element

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    Node
  84. 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.

  85. def hasOwnProperty(v: String): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  87. 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

  88. 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

  89. 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.

  90. 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

  91. 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

  92. 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

  93. 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

  94. 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

  95. 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

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

    Permalink
    Definition Classes
    Node
  97. 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.

  98. 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.

  99. def isContentEditable: Boolean

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

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

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

    Permalink
    Definition Classes
    Node
  103. var lang: String

    Permalink
    Definition Classes
    HTMLElement
  104. def lastChild: Node

    Permalink
    Definition Classes
    Node
  105. def lastElementChild: Element

    Permalink
    Definition Classes
    ParentNode
  106. def localName: String

    Permalink
    Definition Classes
    Node
  107. def namespaceURI: String

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

    Permalink
    Definition Classes
    AnyRef
  109. 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

  110. 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

  111. def nextSibling: Node

    Permalink
    Definition Classes
    Node
  112. 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

  113. def nodeName: String

    Permalink
    Definition Classes
    Node
  114. def nodeType: NodeType

    Permalink
    Definition Classes
    Node
  115. def nodeValue: Any

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

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

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

    Permalink
    Definition Classes
    AnyRef
  119. 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.

  120. 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.

  121. 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

  122. 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

  123. 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.

  124. 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.

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

    Permalink
  126. def outerHeight(): Integer

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

    Permalink
  128. def outerWidth(): Integer

    Permalink
  129. def ownerDocument: Document

    Permalink
    Definition Classes
    Node
  130. 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

  131. def parentNode: Node

    Permalink
    Definition Classes
    Node
  132. 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

  133. 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

  134. 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

  135. def prefix: String

    Permalink
    Definition Classes
    Node
  136. def prepend(content: Any): JQueryElement.this.type

    Permalink

    Inserts content at the beginning of the selected elements

    Inserts content at the beginning of the selected elements

    content

    the specified content

  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: Any, content1: Any*): 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(name: String): Boolean

    Permalink

    Get the value of a property for the first element in the set of matched elements.

    Get the value of a property for the first element in the set of matched elements.

    name

    The name of the property to get.

  147. def prop[T <: Any](propertyName: String): T

    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

  148. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  149. 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.

  150. 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.

  151. 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.

  152. 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.

  153. def removeAttribute(name: String): Unit

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

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

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

    Permalink
    Definition Classes
    Node
  157. 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.

  158. 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.

  159. 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.

  160. 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.

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

    Permalink

    Remove a previously-stored piece of data.

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

    Permalink
    Definition Classes
    Node
  163. 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.

  164. 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.

  165. 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.

  166. 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.

  167. 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.

  168. 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

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

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

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

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

    Permalink
    Definition Classes
    Element
  173. 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.

  174. 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

  175. 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.

  176. 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.

  177. 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.

  178. var style: CSSStyleDeclaration

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

    Permalink
    Definition Classes
    AnyRef
  180. var tabIndex: String

    Permalink
    Definition Classes
    HTMLElement
  181. def tagName: String

    Permalink
    Definition Classes
    Element
  182. 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

  183. 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.

  184. var title: String

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  187. 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.

  188. 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.

  189. 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

  190. 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.

  191. 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

  192. 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.

  193. 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.

  194. 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 ).

  195. 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.

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

    Permalink

    Remove a previously-attached event handler from the elements.

  197. 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

  198. 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.

  199. def valueOf(): Any

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  203. 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

  204. 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

  205. 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.

  206. 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