• Parameters

    • window: Window
    • discriminator: boolean

    Returns JQueryStatic

  • Creates DOM elements on the fly from the provided string of raw HTML.

    Type Parameters

    • TElement extends HTMLElement = HTMLElement

    Parameters

    • html: string

      @param html

      • html (ownerDocument) — A string of HTML to create on the fly. Note that this parses HTML, not XML.
      • html (attributes) — A string defining a single, standalone, HTML element (e.g. <div/> or <div></div>).
    • OptionalownerDocument_attributes: Document | PlainObject<any>

      @param ownerDocument_attributes

      • ownerDocument — A document in which the new elements will be created.
      • attributes — An object of attributes, events, and methods to call on the newly-created element.

    Returns JQuery<TElement>

    <a href="https://api.jquery.com/jQuery/">https://api.jquery.com/jQuery/</a>

    1.0

    1.4

    $( "<div/>", {
    "class": "test",
    text: "Click me!",
    click: function() {
    $( this ).toggleClass( "test" );
    }
    })
    .appendTo( "body" );
  • Accepts a string containing a CSS selector which is then used to match a set of elements.

    Type Parameters

    • TElement extends Element = HTMLElement

    Parameters

    • selector: string

      A string containing a selector expression

    • Optionalcontext: string | Element | Document | JQuery<HTMLElement>

      A DOM Element, Document, Selector or jQuery to use as context

    Returns JQuery<TElement>

    <a href="https://api.jquery.com/jQuery/">https://api.jquery.com/jQuery/</a>

    1.0

    $( "input:radio", document.forms[ 0 ] );
    
    $( "div", xml.responseXML );
    

  • Return a collection of matched elements either found in the DOM based on passed argument(s) or created by passing an HTML string.

    Parameters

    • element: HTMLSelectElement

      A DOM element to wrap in a jQuery object.

    Returns JQuery<HTMLSelectElement>

    <a href="https://api.jquery.com/jQuery/">https://api.jquery.com/jQuery/</a>

    1.0

    $( document.body ).css( "background", "black" );
    
  • Return a collection of matched elements either found in the DOM based on passed argument(s) or created by passing an HTML string.

    Type Parameters

    • T extends Element

    Parameters

    • element_elementArray: T | ArrayLike<T>

      @param element_elementArray

      • element — A DOM element to wrap in a jQuery object.
      • elementArray — An array containing a set of DOM elements to wrap in a jQuery object.

    Returns JQuery<T>

    <a href="https://api.jquery.com/jQuery/">https://api.jquery.com/jQuery/</a>

    1.0

    $( myForm.elements ).hide();
    
  • Return a collection of matched elements either found in the DOM based on passed argument(s) or created by passing an HTML string.

    Type Parameters

    • T

    Parameters

    • selection: JQuery<T>

      An existing jQuery object to clone.

    Returns JQuery<T>

    <a href="https://api.jquery.com/jQuery/">https://api.jquery.com/jQuery/</a>

    1.0

  • Binds a function to be executed when the DOM has finished loading.

    Type Parameters

    • TElement = HTMLElement

    Parameters

    • callback: (this: Document, $: JQueryStatic) => void

      The function to execute when the DOM is ready.

    Returns JQuery<TElement>

    <a href="https://api.jquery.com/jQuery/">https://api.jquery.com/jQuery/</a>

    1.0

    jQuery(function( $ ) {
    // Your code using failsafe $ alias here...
    });
  • Return a collection of matched elements either found in the DOM based on passed argument(s) or created by passing an HTML string.

    Type Parameters

    • T extends PlainObject<any>

    Parameters

    • object: T

      A plain object to wrap in a jQuery object.

    Returns JQuery<T>

    <a href="https://api.jquery.com/jQuery/">https://api.jquery.com/jQuery/</a>

    1.0

  • Returns an empty jQuery set.

    Type Parameters

    • TElement = HTMLElement

    Returns JQuery<TElement>

    <a href="https://api.jquery.com/jQuery/">https://api.jquery.com/jQuery/</a>

    1.4

Properties

Properties

modal: { BEFORE_CLOSE: string; close(): void }