Trait

io.scalajs.jquery

JQTraversal

Related Doc: package jquery

Permalink

trait JQTraversal extends Object

jQuery traversing, which means "move through", are used to "find" (or select) HTML elements based on their relation to other elements. Start with one selection and move through that selection until you reach the elements you desire.

The image below illustrates a family tree. With jQuery traversing, you can easily move up (ancestors), down (descendants) and sideways (siblings) in the family tree, starting from the selected (current) element. This movement is called traversing - or moving through - the DOM.

Annotations
@RawJSType() @native()
See also

http://www.w3schools.com/jquery/jquery_ref_traversing.asp

http://api.jquery.com/category/traversing/tree-traversal/

Linear Supertypes
Object, Any, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JQTraversal
  2. Object
  3. Any
  4. AnyRef
  5. 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): JQTraversal.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): JQTraversal.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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def children(selector: Selector = js.native): JQTraversal.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

  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def closest(element: Element): JQTraversal.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

  10. def closest(selector: Selector, context: |[Element, Any] = js.native): JQTraversal.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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def find(element: Element): JQTraversal.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

  15. def find(selector: Selector): JQTraversal.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

  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  17. def hasOwnProperty(v: String): Boolean

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

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

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

  21. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    Object
  23. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. def next(selector: Selector = js.native): JQTraversal.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

  25. def nextAll(selector: Selector = js.native): JQTraversal.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

  26. def nextUntil(selector: |[Selector, Node] = js.native, filter: String = js.native): JQTraversal.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

  27. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  29. def offsetParent(): JQTraversal.this.type

    Permalink

    Get the closest ancestor element that is positioned.

    Get the closest ancestor element that is positioned.

    returns

    self reference

  30. def parent(selector: Selector = js.native): JQTraversal.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

  31. def parents(selector: Selector = js.native): JQTraversal.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

  32. def parentsUntil(selector: |[Selector, Node] = js.native, filter: String = js.native): JQTraversal.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

  33. def prev(selector: Selector = js.native): JQTraversal.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

  34. def prevAll(selector: Selector = js.native): JQTraversal.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

  35. def prevUntil(selector: |[Selector, Node] = js.native, filter: String = js.native): JQTraversal.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

  36. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  37. def siblings(selector: Selector = js.native): JQTraversal.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

  38. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  39. def toLocaleString(): String

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

    Permalink
    Definition Classes
    AnyRef → Any
  41. def valueOf(): Any

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped