@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>).@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.Accepts a string containing a CSS selector which is then used to match a set of elements.
A string containing a selector expression
A DOM Element, Document, Selector or jQuery to use as context
Return a collection of matched elements either found in the DOM based on passed argument(s) or created by passing an HTML string.
A DOM element to wrap in a jQuery object.
Return a collection of matched elements either found in the DOM based on passed argument(s) or created by passing an HTML string.
@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.Return a collection of matched elements either found in the DOM based on passed argument(s) or created by passing an HTML string.
An existing jQuery object to clone.
Binds a function to be executed when the DOM has finished loading.
The function to execute when the DOM is ready.
Return a collection of matched elements either found in the DOM based on passed argument(s) or created by passing an HTML string.
A plain object to wrap in a jQuery object.
Returns an empty jQuery set.
Contains information about the current browser environment, such as which browser the user is using etc.
Hook directly into jQuery to override how particular CSS properties are retrieved or set, normalize CSS property naming, or create custom properties.
An object containing all CSS properties that may be used without a unit. The .css() method uses this object to see if it may append px to unitless values.
The global settings for the jQuery Hotkeys plugin.
Namespace in the static jQuery object for plugins written by Keith Wood, see http://keith-wood.name/
Keypad related constants and utility method available on the $.keypad
object.
A Promise-like object (or "thenable") that resolves when the document is ready.
A collection of properties that represent the presence of different browser features or bugs. Intended for jQuery's internal use; specific properties may be removed when they are no longer needed internally to improve page startup performance. For your own project's feature-detection needs, we strongly recommend the use of an external library such as Modernizr instead of dependency on properties in jQuery.support.
The global instance of the timepicker utility class for working with times.
Perform an asynchronous HTTP (Ajax) request.
A string containing the URL to which the request is sent.
A set of key/value pairs that configure the Ajax request. All settings are optional. A default can be set for any option with $.ajaxSetup(). See jQuery.ajax( settings ) below for a complete list of all settings.
Perform an asynchronous HTTP (Ajax) request.
A set of key/value pairs that configure the Ajax request. All settings are optional. A default can be set for any option with $.ajaxSetup().
Handle custom Ajax options or modify existing options before each request is sent and before they are processed by $.ajax().
An optional string containing one or more space-separated dataTypes
A handler to set default values for future Ajax requests.
Handle custom Ajax options or modify existing options before each request is sent and before they are processed by $.ajax().
A handler to set default values for future Ajax requests.
Set default values for future Ajax requests. Its use is not recommended.
A set of key/value pairs that configure the default Ajax request. All options are optional.
Creates an object that handles the actual transmission of Ajax data.
A string identifying the data type to use
A handler to return the new transport object to use with the data type provided in the first argument.
Check to see if a DOM element is a descendant of another DOM element.
The DOM element that may contain the other element.
The DOM element that may be contained by (a descendant of) the other element.
Store arbitrary data associated with the specified element. Returns the value that was set.
The DOM element to associate with the data.
A string naming the piece of data to set.
The new data value; this can be any Javascript type except undefined
.
Returns value at named data store for the element, as set by jQuery.data(element, name, value)
, or the full data store for the element.
The DOM element to query for the data.
Name of the data stored.
undefined
is not recognized as a data value. Calls such as jQuery.data( el, "name", undefined )
will return the corresponding data for "name", and is therefore the same as jQuery.data( el, "name" )
Returns value at named data store for the element, as set by jQuery.data(element, name, value)
, or the full data store for the element.
The DOM element to query for the data.
Name of the data stored.
Execute the next function on the queue for the matched element.
A DOM element from which to remove and execute a queued function.
A string containing the name of the queue. Defaults to fx, the standard effects queue.
A generic iterator function, which can be used to seamlessly iterate over both objects and arrays. Arrays and array-like objects with a length property (such as a function's arguments object) are iterated by numeric index, from 0 to length-1. Other objects are iterated via their named properties.
The array to iterate over.
The function that will be executed on every object.
A generic iterator function, which can be used to seamlessly iterate over both objects and arrays. Arrays and array-like objects with a length property (such as a function's arguments object) are iterated by numeric index, from 0 to length-1. Other objects are iterated via their named properties.
The object to iterate over.
The function that will be executed on every object.
Takes a string and throws an exception containing it.
The message to send out.
Escapes any character that has a special meaning in a CSS selector.
A string containing a selector expression to escape.
Merge the contents of two or more objects together into the first object.
If true, the merge becomes recursive (aka. deep copy). Passing false for this argument is not supported.
The object to extend. It will receive the new properties.
An object containing additional properties to merge in.
An object containing additional properties to merge in.
An object containing additional properties to merge in.
An object containing additional properties to merge in.
An object containing additional properties to merge in.
An object containing additional properties to merge in.
Merge the contents of two or more objects together into the first object.
If true, the merge becomes recursive (aka. deep copy). Passing false for this argument is not supported.
The object to extend. It will receive the new properties.
An object containing additional properties to merge in.
An object containing additional properties to merge in.
An object containing additional properties to merge in.
An object containing additional properties to merge in.
An object containing additional properties to merge in.
Merge the contents of two or more objects together into the first object.
If true, the merge becomes recursive (aka. deep copy). Passing false for this argument is not supported.
The object to extend. It will receive the new properties.
An object containing additional properties to merge in.
An object containing additional properties to merge in.
An object containing additional properties to merge in.
An object containing additional properties to merge in.
Merge the contents of two or more objects together into the first object.
If true, the merge becomes recursive (aka. deep copy). Passing false for this argument is not supported.
The object to extend. It will receive the new properties.
An object containing additional properties to merge in.
An object containing additional properties to merge in.
An object containing additional properties to merge in.
Merge the contents of two or more objects together into the first object.
If true, the merge becomes recursive (aka. deep copy). Passing false for this argument is not supported.
The object to extend. It will receive the new properties.
An object containing additional properties to merge in.
An object containing additional properties to merge in.
Merge the contents of two or more objects together into the first object.
If true, the merge becomes recursive (aka. deep copy). Passing false for this argument is not supported.
The object to extend. It will receive the new properties.
An object containing additional properties to merge in.
Merge the contents of two or more objects together into the first object.
If true, the merge becomes recursive (aka. deep copy). Passing false for this argument is not supported.
The object to extend. It will receive the new properties.
Merge the contents of two or more objects together into the first object.
If true, the merge becomes recursive (aka. deep copy). Passing false for this argument is not supported.
The object to extend. It will receive the new properties.
An object containing additional properties to merge in.
Additional objects containing properties to merge in.
Merge the contents of two or more objects together into the first object.
An object that will receive the new properties if additional objects are passed in or that will extend the jQuery namespace if it is the sole argument.
An object containing additional properties to merge in.
An object containing additional properties to merge in.
An object containing additional properties to merge in.
An object containing additional properties to merge in.
An object containing additional properties to merge in.
An object containing additional properties to merge in.
Merge the contents of two or more objects together into the first object.
An object that will receive the new properties if additional objects are passed in or that will extend the jQuery namespace if it is the sole argument.
An object containing additional properties to merge in.
An object containing additional properties to merge in.
An object containing additional properties to merge in.
An object containing additional properties to merge in.
An object containing additional properties to merge in.
Merge the contents of two or more objects together into the first object.
An object that will receive the new properties if additional objects are passed in or that will extend the jQuery namespace if it is the sole argument.
An object containing additional properties to merge in.
An object containing additional properties to merge in.
An object containing additional properties to merge in.
An object containing additional properties to merge in.
Merge the contents of two or more objects together into the first object.
An object that will receive the new properties if additional objects are passed in or that will extend the jQuery namespace if it is the sole argument.
An object containing additional properties to merge in.
An object containing additional properties to merge in.
An object containing additional properties to merge in.
Merge the contents of two or more objects together into the first object.
An object that will receive the new properties if additional objects are passed in or that will extend the jQuery namespace if it is the sole argument.
An object containing additional properties to merge in.
An object containing additional properties to merge in.
Merge the contents of two or more objects together into the first object.
An object that will receive the new properties if additional objects are passed in or that will extend the jQuery namespace if it is the sole argument.
An object containing additional properties to merge in.
Merge the contents of two or more objects together into the first object.
An object that will receive the new properties if additional objects are passed in or that will extend the jQuery namespace if it is the sole argument.
Merge the contents of two or more objects together into the first object.
An object that will receive the new properties if additional objects are passed in or that will extend the jQuery namespace if it is the sole argument.
An object containing additional properties to merge in.
Additional objects containing properties to merge in.
Load data from the server using a HTTP GET request.
A string containing the URL to which the request is sent.
A plain object or string that is sent to the server with the request.
A callback function that is executed if the request succeeds. Required if dataType
is provided,
but you can use null
or `jQuery.noop` as a placeholder.
The type of data expected from the server. Default: Intelligent Guess (xml, json, script, text, html).
Load data from the server using a HTTP GET request.
A string containing the URL to which the request is sent.
The type of data expected from the server. Default: Intelligent Guess (xml, json, script, text, html).
Load data from the server using a HTTP GET request.
A string containing the URL to which the request is sent.
@param success_data
success
— A callback function that is executed if the request succeeds. Required if dataType
is provided,
but you can use null
or `jQuery.noop` as a placeholder. data
— A plain object or string that is sent to the server with the request.Load data from the server using a HTTP GET request.
@param url_settings
url
— A string containing the URL to which the request is sent. settings
— A set of key/value pairs that configure the Ajax request. All properties except for url
are
optional. A default can be set for any option with `$.ajaxSetup()`. See `jQuery.ajax( settings )`
for a complete list of all settings. The type option will automatically be set to GET
.Load JSON-encoded data from the server using a GET HTTP request.
A string containing the URL to which the request is sent.
A plain object or string that is sent to the server with the request.
A callback function that is executed if the request succeeds.
Load JSON-encoded data from the server using a GET HTTP request.
A string containing the URL to which the request is sent.
@param url_settings
success
— A callback function that is executed if the request succeeds. data
— A plain object or string that is sent to the server with the request.Load a JavaScript file from the server using a GET HTTP request, then execute it.
A string containing the URL to which the request is sent.
A callback function that is executed if the request succeeds.
Load a JavaScript file from the server using a GET HTTP request, then execute it.
Execute some JavaScript code globally.
The JavaScript code to execute.
Finds the elements of an array which satisfy a filter function. The original array is not affected.
The array-like object to search through.
The function to process each item against. The first argument to the function is the item, and the
second argument is the index. The function should return a Boolean value. this
will be the global
window object.
If "invert" is false, or not provided, then the function returns an array consisting of all elements for which "callback" returns true. If "invert" is true, then the function returns an array consisting of all elements for which "callback" returns false.
Determine whether an element has any jQuery data associated with it.
A DOM element to be checked for data.
Holds or releases the execution of jQuery's ready event.
Indicates whether the ready hold is being requested or released
Modify and filter HTML strings passed through jQuery manipulation methods.
The HTML string on which to operate.
There are two ways to instantiate. Either statically, or on an element. Element bound timers will only watch for
events inside of them. You may just want page-level activity, in which case you may set up your timers on
document
, document.documentElement
, and document.body
.
$(function() {
// binds to document - shorthand
$.idleTimer();
// binds to document - explicit
$( document ).idleTimer();
// bind to different element
$( "#myTextArea" ).idleTimer();
});
Element to watch, defaults to the document.
Unique ID for this idle timer, to support multiple timers on the same page.
this JQuery instance for chaining.
There are two ways to instantiate. Either statically, or on an element. Element bound timers will only watch for
events inside of them. You may just want page-level activity, in which case you may set up your timers on
document
, document.documentElement
, and document.body
.
$(function() {
// binds to document - shorthand
$.idleTimer(1000);
// binds to document - explicit
$( document ).idleTimer(1000);
// bind to different element
$( "#myTextArea" ).idleTimer(1000);
});
The timeout period in milliseconds.
Element to watch, defaults to the document.
Unique ID for this idle timer, to support multiple timers on the same page.
this JQuery instance for chaining.
There are two ways to instantiate. Either statically, or on an element. Element bound timers will only watch for
events inside of them. You may just want page-level activity, in which case you may set up your timers on
document
, document.documentElement
, and document.body
.
$(function() {
// binds to document - shorthand
$.idleTimer({
timeout:10000,
idle:true
});
// binds to document - explicit
$( document ).idleTimer({
timeout:10000,
idle:true
});
// bind to different element
$( "#myTextArea" ).idleTimer({
timeout:10000,
idle:true
});
});
The options for this idle timer. Any options not specified explicitly are set to their default values.
Element to watch, defaults to the document.
Unique ID for this idle timer, to support multiple timers on the same page.
this JQuery instance for chaining.
Stop the timer, removes data, removes event bindings to come back from this you will need to instantiate again.
The method to be invoked on this idle timer instance.
Element to watch, defaults to the document.
Unique ID for this idle timer, to support multiple timers on the same page.
this JQuery instance for chaining.
Saves the remaining time, and stops the timer.
The method to be invoked on this idle timer instance.
Element to watch, defaults to the document.
Unique ID for this idle timer, to support multiple timers on the same page.
this JQuery instance for chaining.
Starts the timer with remaining time saved when pause
was called.
The method to be invoked on this idle timer instance.
Element to watch, defaults to the document.
Unique ID for this idle timer, to support multiple timers on the same page.
this JQuery instance for chaining.
Restore initial idle state, and restart the timer.
The method to be invoked on this idle timer instance.
Element to watch, defaults to the document.
Unique ID for this idle timer, to support multiple timers on the same page.
this JQuery instance for chaining.
Get time left until idle. If currently idle, returns 0.
The method to be invoked on this idle timer instance.
Element to watch, defaults to the document.
Unique ID for this idle timer, to support multiple timers on the same page.
The time in milliseconds until the user goes idle. If user is already idle, returns 0
.
Get time elapsed since the user went idle or active.
The method to be invoked on this idle timer instance.
Element to watch, defaults to the document.
Unique ID for this idle timer, to support multiple timers on the same page.
How long the user has been idle or active, in milliseconds.
Get time the last active.idleTimer
event was fired.
The method to be invoked on this idle timer instance.
Element to watch, defaults to the document.
Unique ID for this idle timer, to support multiple timers on the same page.
A timestamp (milliseconds since 1 January 1970 UTC) for when the most recent time the user went from idle to active.
Get whether the user is currently idle.
The method to be invoked on this idle timer instance.
Element to watch, defaults to the document.
Unique ID for this idle timer, to support multiple timers on the same page.
true
if the user is currently idle, or false
if the user is currently active.
Search for a specified value within an array and return its index (or -1 if not found).
The value to search for.
An array through which to search.
The index of the array at which to begin the search. The default is 0, which will search the whole array.
Determine whether the argument is an array.
Object to test whether or not it is an array.
Check to see if an object is empty (contains no enumerable properties).
The object that will be checked to see if it's empty.
Determine if the argument passed is a JavaScript function object.
Object to test whether or not it is a function.
Determines whether its argument represents a JavaScript number.
The value to be tested.
Check to see if an object is a plain object (created using "{}" or "new Object").
The object that will be checked to see if it's a plain object.
Determine whether the argument is a window.
Object to test whether or not it is a window.
Check to see if a DOM node is within an XML document (or is an XML document).
The DOM node that will be checked to see if it's in an XML document.
Convert an array-like object into a true JavaScript array.
Any object to turn into a native Array.
Translate all items in an array or object to new array of items.
The Array to translate.
The function to process each item against. The first argument to the function is the array item, the second argument is the index in array The function can return any value. A returned array will be flattened into the resulting array. Within the function, this refers to the global (window) object.
Translate all items in an array or object to new array of items.
The Object to translate.
The function to process each item against. The first argument to the function is the value; the second argument is the key of the object property. The function can return any value to add to the array. A returned array will be flattened into the resulting array. Within the function, this refers to the global (window) object.
Merge the contents of two arrays together into the first array.
The first array-like object to merge, the elements of second added.
The second array-like object to merge into the first, unaltered.
Relinquish jQuery's control of the $ variable.
A Boolean indicating whether to remove all jQuery variables from the global scope (including jQuery itself).
An empty function.
Return a number representing the current time.
Create a serialized representation of an array, a plain object, or a jQuery object suitable for use in a URL query string or Ajax request. In case a jQuery object is passed, it should contain input elements with name/value properties.
An array, a plain object, or a jQuery object to serialize.
A Boolean indicating whether to perform a traditional "shallow" serialization.
Parses a string into an array of DOM nodes.
HTML string to be parsed
Document element to serve as the context in which the HTML fragment will be created
A Boolean indicating whether to include scripts passed in the HTML string
Parses a string into an array of DOM nodes.
HTML string to be parsed
@param context_keepScripts
context
— Document element to serve as the context in which the HTML fragment will be created keepScripts
— A Boolean indicating whether to include scripts passed in the HTML stringTakes a well-formed JSON string and returns the resulting JavaScript value.
The JSON string to parse.
Parses a string into an XML document.
a well-formed XML string to be parsed
Load data from the server using a HTTP POST request.
A string containing the URL to which the request is sent.
A plain object or string that is sent to the server with the request.
A callback function that is executed if the request succeeds. Required if dataType is provided, but can be null in that case.
The type of data expected from the server. Default: Intelligent Guess (xml, json, script, text, html).
Load data from the server using a HTTP POST request.
A string containing the URL to which the request is sent.
The type of data expected from the server. Default: Intelligent Guess (xml, json, script, text, html).
Load data from the server using a HTTP POST request.
A string containing the URL to which the request is sent.
@param success_data
success
— A callback function that is executed if the request succeeds. Required if dataType
is provided,
but can be null
in that case. data
— A plain object or string that is sent to the server with the request.Load data from the server using a HTTP POST request.
@param url_settings
url
— A string containing the URL to which the request is sent. settings
— A set of key/value pairs that configure the Ajax request. All properties except for url
are optional.
A default can be set for any option with `$.ajaxSetup()`. See `jQuery.ajax( settings )`
for a complete list of all settings. Type will automatically be set to POST
.Prints the currently selected element.
CSS selector for the element to print.
Optional settings for printing.
This jQuery instance for chaining.
Creates DOM elements on the fly from the provided string of raw HTML.
``
1.0
1.4
````Create a div element (and all of its contents) dynamically and append it to the body element. Internally, an element is created and its innerHTML property set to the given markup.
````Create some DOM elements.