formcycle 8.3.6 - JavaScript for forms
    Preparing search index...

    Interface JQueryStatic

    interface JQueryStatic {
        xutil: XUtil;
        (window: Window, discriminator: boolean): JQueryStatic;
        <TElement extends HTMLElement = HTMLElement>(
            html: string,
            ownerDocument_attributes?: Document | PlainObject<any>,
        ): JQuery<TElement>;
        <TElement extends Element = HTMLElement>(
            selector: string,
            context?: string | Element | Document | JQuery<HTMLElement>,
        ): JQuery<TElement>;
        (element: HTMLSelectElement): JQuery<HTMLSelectElement>;
        <T extends Element>(element_elementArray: T | ArrayLike<T>): JQuery<T>;
        <T>(selection: JQuery<T>): JQuery<T>;
        <TElement = HTMLElement>(
            callback: (this: Document, $: JQueryStatic) => void,
        ): JQuery<TElement>;
        <T extends PlainObject<any>>(object: T): JQuery<T>;
        <TElement = HTMLElement>(): JQuery<TElement>;
    }
    • 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><p>Hello</p></div>" ).appendTo( "body" )
      
      $( "<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

      <!doctype html>
      <html lang="en">
      <head>
      <meta charset="utf-8">
      <title>jQuery demo</title>
      <script src="https://code.jquery.com/jquery-3.3.1.js"></script>
      </head>
      <body>

      <p>one</p>
      <div><p>two</p></div>
      <p>three</p>

      <script>
      $( "div > p" ).css( "border", "1px solid gray" );
      </script>
      </body>
      </html>
      $( "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

      $( document.body ).css( "background", "black" );
      
      $( 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

      $(function() {
      // Document is ready
      });
      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

    Index

    Properties

    Properties

    xutil: XUtil

    Contains static utility functions used by XIMA formcycle.