package js.jquery
Available on js new () new (element:Element) new (elementArray:EitherType<NodeList, Array<Element>>) new (selection:JQuery) new (callback:Function) new (object:Dynamic) new (html:String, attributes:Dynamic) new (selector:String, ?context:EitherType<Element, JQuery>) new (html:String, ?ownerDocument:Document)Creates DOM elements on the fly from the provided string of raw HTML. OR Accepts a string containing a CSS selector which is then used to match a set of elements. OR Binds a function to be executed when the DOM has finished loading.
context:ElementThe DOM node context originally passed to jQuery(); if none was passed then context will likely be the document.
jquery:StringA string containing the jQuery version number.
read only length:IntThe number of elements in the jQuery object.
selector:StringA selector representing selector passed to jQuery(), if any, when creating the original set.
add (selector:String):JQueryadd (elements:Element):JQueryadd (html:String):JQueryadd (selection:JQuery):JQueryadd (selector:String, context:Element):JQueryCreate a new jQuery object with elements added to the set of matched elements.
addBack (?selector:String):JQueryAdd the previous set of elements on the stack to the current set, optionally filtered by a selector.
addClass (className:String):JQueryaddClass (_function:Int ‑> String ‑> String):JQueryAdds the specified class(es) to each element in the set of matched elements.
after (_function:Int ‑> EitherType<Element, EitherType<String, JQuery>>):JQueryafter (_function:Int ‑> String ‑> EitherType<Element, EitherType<String, JQuery>>):JQueryafter (content:EitherType<Array<String>, EitherType<Array<JQuery>, EitherType<Element, EitherType<Array<Element>, EitherType<NodeList, EitherType<String, JQuery>>>>>>, ?content:EitherType<Array<String>, EitherType<Array<JQuery>, EitherType<Element, EitherType<Array<Element>, EitherType<NodeList, EitherType<String, JQuery>>>>>>):JQueryInsert content, specified by the parameter, after each element in the set of matched elements.
ajaxComplete (handler:Event ‑> JqXHR ‑> Dynamic ‑> Void):JQueryRegister a handler to be called when Ajax requests complete. This is an AjaxEvent.
ajaxError (handler:Event ‑> JqXHR ‑> Dynamic ‑> String ‑> Void):JQueryRegister a handler to be called when Ajax requests complete with an error. This is an Ajax Event.
ajaxSend (handler:Event ‑> JqXHR ‑> Dynamic ‑> Void):JQueryAttach a function to be executed before an Ajax request is sent. This is an Ajax Event.
ajaxStart (handler:Function):JQueryRegister a handler to be called when the first Ajax request begins. This is an Ajax Event.
ajaxStop (handler:Function):JQueryRegister a handler to be called when all Ajax requests have completed. This is an Ajax Event.
ajaxSuccess (handler:Event ‑> JqXHR ‑> Dynamic ‑> Dynamic ‑> Void):JQueryAttach a function to be executed whenever an Ajax request completes successfully. This is an Ajax Event.
andSelf ():JQueryAdd the previous set of elements on the stack to the current set.
animate (properties:Dynamic, options:Dynamic):JQueryanimate (properties:Dynamic, ?duration:EitherType<Float, String>, ?easing:String, ?complete:Function):JQueryPerform a custom animation of a set of CSS properties.
append (_function:Int ‑> String ‑> EitherType<Element, EitherType<String, JQuery>>):JQueryappend (content:EitherType<Array<String>, EitherType<Array<JQuery>, EitherType<Element, EitherType<Array<Element>, EitherType<NodeList, EitherType<String, JQuery>>>>>>, ?content:EitherType<Array<String>, EitherType<Array<JQuery>, EitherType<Element, EitherType<Array<Element>, EitherType<NodeList, EitherType<String, JQuery>>>>>>):JQueryInsert content, specified by the parameter, to the end of each element in the set of matched elements.
appendTo (target:EitherType<Element, EitherType<Array<Element>, EitherType<String, JQuery>>>):JQueryInsert every element in the set of matched elements to the end of the target.
attr (attributeName:String):Stringattr (attributes:Dynamic):JQueryattr (attributeName:String, value:EitherType<Float, String>):JQueryattr (attributeName:String, _function:Int ‑> String ‑> EitherType<Float, String>):JQuerySet one or more attributes for the set of matched elements. OR Get the value of an attribute for the first element in the set of matched elements.
before (_function:Int ‑> EitherType<Element, EitherType<String, JQuery>>):JQuerybefore (_function:Int ‑> String ‑> EitherType<Element, EitherType<String, JQuery>>):JQuerybefore (content:EitherType<Array<String>, EitherType<Array<JQuery>, EitherType<Element, EitherType<Array<Element>, EitherType<NodeList, EitherType<String, JQuery>>>>>>, ?content:EitherType<Array<String>, EitherType<Array<JQuery>, EitherType<Element, EitherType<Array<Element>, EitherType<NodeList, EitherType<String, JQuery>>>>>>):JQueryInsert content, specified by the parameter, before each element in the set of matched elements.
bind (events:Dynamic):JQuerybind (eventType:String, ?eventData:Dynamic, handler:Event ‑> Void):JQuerybind (eventType:String, ?eventData:Dynamic, ?preventBubble:Bool):JQueryAttach a handler to an event for the elements.
blur ():JQueryblur (handler:Event ‑> Void):JQueryblur (?eventData:Dynamic, handler:Event ‑> Void):JQueryBind an event handler to the "blur" JavaScript event, or trigger that event on an element.
change ():JQuerychange (handler:Event ‑> Void):JQuerychange (?eventData:Dynamic, handler:Event ‑> Void):JQueryBind an event handler to the "change" JavaScript event, or trigger that event on an element.
children (?selector:String):JQueryGet the children of each element in the set of matched elements, optionally filtered by a selector.
clearQueue (?queueName:String):JQueryRemove from the queue all items that have not yet been run.
click ():JQueryclick (handler:Event ‑> Void):JQueryclick (?eventData:Dynamic, handler:Event ‑> Void):JQueryBind an event handler to the "click" JavaScript event, or trigger that event on an element.
clone (?withDataAndEvents:Bool):JQueryclone (?withDataAndEvents:Bool, ?deepWithDataAndEvents:Bool):JQueryCreate a deep copy of the set of matched elements.
closest (selector:String):JQueryclosest (selection:JQuery):JQueryclosest (element:Element):JQueryclosest (selector:String, ?context:Element):JQueryclosest (selectors:EitherType<Array<String>, EitherType<String, JQuery>>, ?context:Element):Array<Dynamic>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. OR Get an array of all the elements and selectors matched against the current element up through the DOM tree.
contents ():JQueryGet the children of each element in the set of matched elements, including text and comment nodes.
contextmenu ():JQuerycontextmenu (handler:Event ‑> Void):JQuerycontextmenu (?eventData:Dynamic, handler:Event ‑> Void):JQueryBind an event handler to the "contextmenu" JavaScript event, or trigger that event on an element.
css (propertyName:String):Stringcss (propertyNames:Array<String>):Stringcss (properties:Dynamic):JQuerycss (propertyName:String, value:EitherType<Float, String>):JQuerycss (propertyName:String, _function:Int ‑> String ‑> EitherType<Float, String>):JQuerySet one or more CSS properties for the set of matched elements. OR Get the computed style properties for the first element in the set of matched elements.
data ():Dynamicdata (key:String):Dynamicdata (obj:Dynamic):JQuerydata (key:String, value:Dynamic):JQueryReturn the value at the named data store for the first element in the jQuery collection, as set by data(name, value) or by an HTML5 data-* attribute. OR Store arbitrary data associated with the matched elements.
dblclick ():JQuerydblclick (handler:Event ‑> Void):JQuerydblclick (?eventData:Dynamic, handler:Event ‑> Void):JQueryBind an event handler to the "dblclick" JavaScript event, or trigger that event on an element.
delay (duration:Int, ?queueName:String):JQuerySet a timer to delay execution of subsequent items in the queue.
delegate (selector:String, events:Dynamic):JQuerydelegate (selector:String, eventType:String, handler:Event ‑> Void):JQuerydelegate (selector:String, eventType:String, eventData:Dynamic, handler:Event ‑> Void):JQueryAttach a handler to one or more events for all elements that match the selector, now or in the future, based on a specific set of root elements.
dequeue (?queueName:String):JQueryExecute the next function on the queue for the matched elements.
detach (?selector:String):JQueryRemove the set of matched elements from the DOM.
die ():JQuerydie (events:Dynamic):JQuerydie (eventType:String, ?handler:String):JQueryRemove event handlers previously attached using .live() from the elements.
each (_function:Int ‑> Element ‑> Void):JQueryIterate over a jQuery object, executing a function for each matched element.
inline elements ():JqEltsIteratorHaxe iterator.
empty ():JQueryRemove all child nodes of the set of matched elements from the DOM.
end ():JQueryEnd the most recent filtering operation in the current chain and return the set of matched elements to its previous state.
eq (index:Int):JQueryeq (indexFromEnd:Int):JQueryReduce the set of matched elements to the one at the specified index.
error (handler:Event ‑> Void):JQueryerror (?eventData:Dynamic, handler:Event ‑> Void):JQueryBind an event handler to the "error" JavaScript event.
fadeIn (options:Dynamic):JQueryfadeIn (?duration:EitherType<Float, String>, ?complete:Function):JQueryfadeIn (?duration:EitherType<Float, String>, ?easing:String, ?complete:Function):JQueryDisplay the matched elements by fading them to opaque.
fadeOut (options:Dynamic):JQueryfadeOut (?duration:EitherType<Float, String>, ?complete:Function):JQueryfadeOut (?duration:EitherType<Float, String>, ?easing:String, ?complete:Function):JQueryHide the matched elements by fading them to transparent.
fadeTo (duration:EitherType<Float, String>, opacity:Float, ?complete:Function):JQueryfadeTo (duration:EitherType<Float, String>, opacity:Float, ?easing:String, ?complete:Function):JQueryAdjust the opacity of the matched elements.
fadeToggle (options:Dynamic):JQueryfadeToggle (?duration:EitherType<Float, String>, ?easing:String, ?complete:Function):JQueryDisplay or hide the matched elements by animating their opacity.
filter (selector:String):JQueryfilter (elements:Element):JQueryfilter (selection:JQuery):JQueryfilter (_function:Int ‑> Element ‑> Bool):JQueryReduce the set of matched elements to those that match the selector or pass the function's test.
find (selector:String):JQueryfind (element:EitherType<Element, JQuery>):JQueryGet the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element.
finish (?queue:String):JQueryStop the currently-running animation, remove all queued animations, and complete all animations for the matched elements.
first ():JQueryReduce the set of matched elements to the first in the set.
focus ():JQueryfocus (handler:Event ‑> Void):JQueryfocus (?eventData:Dynamic, handler:Event ‑> Void):JQueryBind an event handler to the "focus" JavaScript event, or trigger that event on an element.
focusin ():JQueryfocusin (handler:Event ‑> Void):JQueryfocusin (?eventData:Dynamic, handler:Event ‑> Void):JQueryBind an event handler to the "focusin" event.
focusout ():JQueryfocusout (handler:Event ‑> Void):JQueryfocusout (?eventData:Dynamic, handler:Event ‑> Void):JQueryBind an event handler to the "focusout" JavaScript event.
get ():Array<Element>get (index:Int):ElementRetrieve one of the elements matched by the jQuery object. OR Retrieve the elements matched by the jQuery object.
has (selector:String):JQueryhas (contained:Element):JQueryReduce the set of matched elements to those that have a descendant that matches the selector or DOM element.
hasClass (className:String):BoolDetermine whether any of the matched elements are assigned the given class.
height ():Floatheight (value:EitherType<Float, String>):JQueryheight (_function:Int ‑> Int ‑> EitherType<Float, String>):JQuerySet the CSS height of every matched element. OR Get the current computed height for the first element in the set of matched elements.
hide ():JQueryhide (options:Dynamic):JQueryhide (?duration:EitherType<Float, String>, ?complete:Function):JQueryhide (duration:EitherType<Float, String>, ?easing:String, ?complete:Function):JQueryHide the matched elements.
hover (handlerInOut:Event ‑> Void):JQueryhover (handlerIn:Event ‑> Void, handlerOut:Event ‑> Void):JQueryBind two handlers to the matched elements, to be executed when the mouse pointer enters and leaves the elements. OR Bind a single handler to the matched elements, to be executed when the mouse pointer enters or leaves the elements.
html ():Stringhtml (htmlString:String):JQueryhtml (_function:Int ‑> String ‑> String):JQueryGet the HTML contents of the first element in the set of matched elements. OR Set the HTML contents of each element in the set of matched elements.
index ():Intindex (selector:String):Intindex (element:EitherType<Element, JQuery>):IntSearch for a given element from among the matched elements.
innerHeight ():FloatinnerHeight (value:EitherType<Float, String>):JQueryinnerHeight (_function:Int ‑> Float ‑> EitherType<Float, String>):JQuerySet the CSS inner height of each element in the set of matched elements. OR Get the current computed height for the first element in the set of matched elements, including padding but not border.
innerWidth ():FloatinnerWidth (value:EitherType<Float, String>):JQueryinnerWidth (_function:Int ‑> Float ‑> EitherType<Float, String>):JQueryGet the current computed inner width for the first element in the set of matched elements, including padding but not border. OR Set the CSS inner width of each element in the set of matched elements.
insertAfter (target:EitherType<Element, EitherType<Array<Element>, EitherType<String, JQuery>>>):JQueryInsert every element in the set of matched elements after the target.
insertBefore (target:EitherType<Element, EitherType<Array<Element>, EitherType<String, JQuery>>>):JQueryInsert every element in the set of matched elements before the target.
is (selector:String):Boolis (selection:JQuery):Boolis (elements:Element):Boolis (_function:Int ‑> Element ‑> Bool):BoolCheck 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.
inline iterator ():JqIteratorHaxe iterator.
keydown ():JQuerykeydown (handler:Event ‑> Void):JQuerykeydown (?eventData:Dynamic, handler:Event ‑> Void):JQueryBind an event handler to the "keydown" JavaScript event, or trigger that event on an element.
keypress ():JQuerykeypress (handler:Event ‑> Void):JQuerykeypress (?eventData:Dynamic, handler:Event ‑> Void):JQueryBind an event handler to the "keypress" JavaScript event, or trigger that event on an element.
keyup ():JQuerykeyup (handler:Event ‑> Void):JQuerykeyup (?eventData:Dynamic, handler:Event ‑> Void):JQueryBind an event handler to the "keyup" JavaScript event, or trigger that event on an element.
last ():JQueryReduce the set of matched elements to the final one in the set.
live (events:Dynamic):JQuerylive (events:String, handler:Event ‑> Void):JQuerylive (events:String, ?data:Dynamic, handler:Event ‑> Void):JQueryAttach an event handler for all elements which match the current selector, now and in the future.
load (handler:Event ‑> Void):JQueryload (?eventData:Dynamic, handler:Event ‑> Void):JQueryload (url:String, ?data:Dynamic, ?complete:String ‑> String ‑> JqXHR ‑> Void):JQueryBind an event handler to the "load" JavaScript event. OR Load data from the server and place the returned HTML into the matched element.
map (callback:Int ‑> Element ‑> Dynamic):JQueryPass each element in the current matched set through a function, producing a new jQuery object containing the return values.
mousedown ():JQuerymousedown (handler:Event ‑> Void):JQuerymousedown (?eventData:Dynamic, handler:Event ‑> Void):JQueryBind an event handler to the "mousedown" JavaScript event, or trigger that event on an element.
mouseenter ():JQuerymouseenter (handler:Event ‑> Void):JQuerymouseenter (?eventData:Dynamic, handler:Event ‑> Void):JQueryBind an event handler to be fired when the mouse enters an element, or trigger that handler on an element.
mouseleave ():JQuerymouseleave (handler:Event ‑> Void):JQuerymouseleave (?eventData:Dynamic, handler:Event ‑> Void):JQueryBind an event handler to be fired when the mouse leaves an element, or trigger that handler on an element.
mousemove ():JQuerymousemove (handler:Event ‑> Void):JQuerymousemove (?eventData:Dynamic, handler:Event ‑> Void):JQueryBind an event handler to the "mousemove" JavaScript event, or trigger that event on an element.
mouseout ():JQuerymouseout (handler:Event ‑> Void):JQuerymouseout (?eventData:Dynamic, handler:Event ‑> Void):JQueryBind an event handler to the "mouseout" JavaScript event, or trigger that event on an element.
mouseover ():JQuerymouseover (handler:Event ‑> Void):JQuerymouseover (?eventData:Dynamic, handler:Event ‑> Void):JQueryBind an event handler to the "mouseover" JavaScript event, or trigger that event on an element.
mouseup ():JQuerymouseup (handler:Event ‑> Void):JQuerymouseup (?eventData:Dynamic, handler:Event ‑> Void):JQueryBind an event handler to the "mouseup" JavaScript event, or trigger that event on an element.
next (?selector:String):JQueryGet 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.
nextAll (?selector:String):JQueryGet all following siblings of each element in the set of matched elements, optionally filtered by a selector.
nextUntil (?selector:String, ?filter:String):JQuerynextUntil (?element:EitherType<Element, JQuery>, ?filter:String):JQueryGet all following siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object passed.
not (selector:EitherType<Element, EitherType<Array<Element>, String>>):JQuerynot (selection:JQuery):JQuerynot (_function:Int ‑> Element ‑> Bool):JQueryRemove elements from the set of matched elements.
off ():JQueryoff (event:Event):JQueryoff (events:Dynamic, ?selector:String):JQueryoff (events:String, ?selector:String, ?handler:Event ‑> Void):JQueryRemove an event handler.
offset ():{top:Float, left:Float}offset (coordinates:{top:Float, left:Float}):JQueryoffset (_function:Int ‑> {top:Float, left:Float} ‑> Dynamic):JQueryGet the current coordinates of the first element in the set of matched elements, relative to the document. OR Set the current coordinates of every element in the set of matched elements, relative to the document.
offsetParent ():JQueryGet the closest ancestor element that is positioned.
on (events:Dynamic, ?selector:String, ?data:Dynamic):JQueryon (events:String, ?selector:String, ?data:Dynamic, handler:Event ‑> Rest<Dynamic> ‑> Void):JQueryAttach an event handler function for one or more events to the selected elements.
one (events:String, ?data:Dynamic, handler:Event ‑> Void):JQueryone (events:Dynamic, ?selector:String, ?data:Dynamic):JQueryone (events:String, ?selector:String, ?data:Dynamic, handler:Event ‑> Void):JQueryAttach a handler to an event for the elements. The handler is executed at most once per element per event type.
outerHeight (value:EitherType<Float, String>):JQueryouterHeight (_function:Function):JQueryouterHeight (?includeMargin:Bool):FloatGet the current computed height for the first element in the set of matched elements, including padding, border, and optionally margin. Returns a number (without "px") representation of the value or null if called on an empty set of elements. OR Set the CSS outer Height of each element in the set of matched elements.
outerWidth (value:EitherType<Float, String>):JQueryouterWidth (_function:Function):JQueryouterWidth (?includeMargin:Bool):FloatGet the current computed width for the first element in the set of matched elements, including padding and border. OR Set the CSS outer width of each element in the set of matched elements.
parent (?selector:String):JQueryGet the parent of each element in the current set of matched elements, optionally filtered by a selector.
parents (?selector:String):JQueryGet the ancestors of each element in the current set of matched elements, optionally filtered by a selector.
parentsUntil (?selector:String, ?filter:String):JQueryparentsUntil (?element:EitherType<Element, JQuery>, ?filter:String):JQueryGet 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.
position ():{top:Float, left:Float}Get the current coordinates of the first element in the set of matched elements, relative to the offset parent.
prepend (_function:Int ‑> String ‑> EitherType<Element, EitherType<String, JQuery>>):JQueryprepend (content:EitherType<Array<String>, EitherType<Array<JQuery>, EitherType<Element, EitherType<Array<Element>, EitherType<NodeList, EitherType<String, JQuery>>>>>>, ?content:EitherType<Array<String>, EitherType<Array<JQuery>, EitherType<Element, EitherType<Array<Element>, EitherType<NodeList, EitherType<String, JQuery>>>>>>):JQueryInsert content, specified by the parameter, to the beginning of each element in the set of matched elements.
prependTo (target:EitherType<Element, EitherType<Array<Element>, EitherType<String, JQuery>>>):JQueryInsert every element in the set of matched elements to the beginning of the target.
prev (?selector:String):JQueryGet 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.
prevAll (?selector:String):JQueryGet all preceding siblings of each element in the set of matched elements, optionally filtered by a selector.
prevUntil (?selector:String, ?filter:String):JQueryprevUntil (?element:EitherType<Element, JQuery>, ?filter:String):JQueryGet all preceding siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object.
promise (?type:String, ?target:Dynamic):PromiseReturn a Promise object to observe when all actions of a certain type bound to the collection, queued or not, have finished.
prop (propertyName:String):Dynamicprop (properties:Dynamic):JQueryprop (propertyName:String, _function:Int ‑> Dynamic ‑> Dynamic):JQueryprop (propertyName:String, value:Dynamic):JQuerySet one or more properties for the set of matched elements. OR Get the value of a property for the first element in the set of matched elements.
pushStack (elements:EitherType<Array<Element>, NodeList>):JQuerypushStack (elements:EitherType<Array<Element>, NodeList>, name:String, arguments:Array<Dynamic>):JQueryAdd a collection of DOM elements onto the jQuery stack.
queue (?queueName:String):Array<Void ‑> Void>queue (?queueName:String, newQueue:Array<Void ‑> Void>):JQueryqueue (?queueName:String, callback:Function ‑> Void):JQueryShow the queue of functions to be executed on the matched elements. OR Manipulate the queue of functions to be executed, once for each matched element.
ready (handler:Function):JQuerySpecify a function to execute when the DOM is fully loaded.
remove (?selector:String):JQueryRemove the set of matched elements from the DOM.
removeAttr (attributeName:String):JQueryRemove an attribute from each element in the set of matched elements.
removeClass (_function:Int ‑> String ‑> String):JQueryremoveClass (?className:String):JQueryRemove a single class, multiple classes, or all classes from each element in the set of matched elements.
removeData (?name:String):JQueryremoveData (?list:EitherType<Array<String>, String>):JQueryRemove a previously-stored piece of data.
removeProp (propertyName:String):JQueryRemove a property for the set of matched elements.
replaceAll (target:EitherType<Array<Element>, EitherType<Element, EitherType<String, JQuery>>>):JQueryReplace each target element with the set of matched elements.
replaceWith (newContent:EitherType<Element, EitherType<Array<Element>, EitherType<String, JQuery>>>):JQueryreplaceWith (_function:Function):JQueryReplace each element in the set of matched elements with the provided new content and return the set of elements that was removed.
resize ():JQueryresize (handler:Event ‑> Void):JQueryresize (?eventData:Dynamic, handler:Event ‑> Void):JQueryBind an event handler to the "resize" JavaScript event, or trigger that event on an element.
scroll ():JQueryscroll (handler:Event ‑> Void):JQueryscroll (?eventData:Dynamic, handler:Event ‑> Void):JQueryBind an event handler to the "scroll" JavaScript event, or trigger that event on an element.
scrollLeft ():IntscrollLeft (value:Float):JQueryGet the current horizontal position of the scroll bar for the first element in the set of matched elements. OR Set the current horizontal position of the scroll bar for each of the set of matched elements.
scrollTop ():FloatscrollTop (value:Float):JQuerySet the current vertical position of the scroll bar for each of the set of matched elements. OR 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.
select ():JQueryselect (handler:Event ‑> Void):JQueryselect (?eventData:Dynamic, handler:Event ‑> Void):JQueryBind an event handler to the "select" JavaScript event, or trigger that event on an element.
serialize ():StringEncode a set of form elements as a string for submission.
serializeArray ():Array<Dynamic>Encode a set of form elements as an array of names and values.
show ():JQueryshow (options:Dynamic):JQueryshow (?duration:EitherType<Float, String>, ?complete:Function):JQueryshow (duration:EitherType<Float, String>, ?easing:String, ?complete:Function):JQueryDisplay the matched elements.
siblings (?selector:String):JQueryGet the siblings of each element in the set of matched elements, optionally filtered by a selector.
size ():IntReturn the number of elements in the jQuery object.
slice (start:Int, ?end:Int):JQueryReduce the set of matched elements to a subset specified by a range of indices.
slideDown (options:Dynamic):JQueryslideDown (?duration:EitherType<Float, String>, ?complete:Function):JQueryslideDown (?duration:EitherType<Float, String>, ?easing:String, ?complete:Function):JQueryDisplay the matched elements with a sliding motion.
slideToggle (options:Dynamic):JQueryslideToggle (?duration:EitherType<Float, String>, ?complete:Function):JQueryslideToggle (?duration:EitherType<Float, String>, ?easing:String, ?complete:Function):JQueryDisplay or hide the matched elements with a sliding motion.
slideUp (options:Dynamic):JQueryslideUp (?duration:EitherType<Float, String>, ?complete:Function):JQueryslideUp (?duration:EitherType<Float, String>, ?easing:String, ?complete:Function):JQueryHide the matched elements with a sliding motion.
stop (?clearQueue:Bool, ?jumpToEnd:Bool):JQuerystop (?queue:String, ?clearQueue:Bool, ?jumpToEnd:Bool):JQueryStop the currently-running animation on the matched elements.
submit ():JQuerysubmit (handler:Event ‑> Void):JQuerysubmit (?eventData:Dynamic, handler:Event ‑> Void):JQueryBind an event handler to the "submit" JavaScript event, or trigger that event on an element.
text ():Stringtext (text:EitherType<Float, EitherType<Bool, String>>):JQuerytext (_function:Int ‑> String ‑> String):JQuerySet the content of each element in the set of matched elements to the specified text. OR Get the combined text contents of each element in the set of matched elements, including their descendants.
toArray ():Array<Element>Retrieve all the elements contained in the jQuery set, as an array.
toggle (display:Bool):JQuerytoggle (options:Dynamic):JQuerytoggle (?duration:EitherType<Float, String>, ?complete:Function):JQuerytoggle (duration:EitherType<Float, String>, ?easing:String, ?complete:Function):JQuerytoggle (handler:Event ‑> Void, handler:Event ‑> Void, ?handler:Event ‑> Void):JQueryBind two or more handlers to the matched elements, to be executed on alternate clicks. OR Display or hide the matched elements.
toggleClass (className:String):JQuerytoggleClass (?state:Bool):JQuerytoggleClass (className:String, state:Bool):JQuerytoggleClass (_function:Int ‑> String ‑> Bool ‑> String, ?state:Bool):JQueryAdd 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.
trigger (eventType:String, ?extraParameters:Dynamic):JQuerytrigger (event:Event, ?extraParameters:Dynamic):JQueryExecute all handlers and behaviors attached to the matched elements for the given event type.
triggerHandler (eventType:String, ?extraParameters:Dynamic):DynamictriggerHandler (event:Event, ?extraParameters:Dynamic):DynamicExecute all handlers attached to an element for an event.
unbind ():JQueryunbind (event:Event):JQueryunbind (eventType:String, _false:Bool):JQueryunbind (eventType:String, ?handler:Event ‑> Void):JQueryRemove a previously-attached event handler from the elements.
undelegate ():JQueryundelegate (namespace:String):JQueryundelegate (selector:String, eventType:String):JQueryundelegate (selector:String, events:Dynamic):JQueryundelegate (selector:String, eventType:String, handler:Event ‑> Void):JQueryRemove a handler from the event for all elements which match the current selector, based upon a specific set of root elements.
unload (handler:Event ‑> Void):JQueryunload (?eventData:Dynamic, handler:Event ‑> Void):JQueryBind an event handler to the "unload" JavaScript event.
unwrap ():JQueryunwrap (?selector:String):JQueryRemove the parents of the set of matched elements from the DOM, leaving the matched elements in their place.
val ():Dynamicval (value:EitherType<Float, EitherType<Array<String>, String>>):JQueryval (_function:Int ‑> String ‑> String):JQuerySet the value of each element in the set of matched elements. OR Get the current value of the first element in the set of matched elements.
width ():Floatwidth (value:EitherType<Float, String>):JQuerywidth (_function:Int ‑> Int ‑> EitherType<Float, String>):JQuerySet the CSS width of each element in the set of matched elements. OR Get the current computed width for the first element in the set of matched elements.
wrap (wrappingElement:EitherType<Element, EitherType<String, JQuery>>):JQuerywrap (_function:Int ‑> EitherType<String, JQuery>):JQueryWrap an HTML structure around each element in the set of matched elements.
wrapAll (wrappingElement:EitherType<Element, EitherType<String, JQuery>>):JQuerywrapAll (_function:Void ‑> EitherType<String, JQuery>):JQueryWrap an HTML structure around all elements in the set of matched elements.
wrapInner (wrappingElement:EitherType<Element, EitherType<String, JQuery>>):JQuerywrapInner (_function:Int ‑> String):JQueryWrap an HTML structure around the content of each element in the set of matched elements.
static boxModel:BoolStates if the current page, in the user's browser, is being rendered using the W3C CSS Box Model. This property was removed in jQuery 1.8. Please try to use feature detection instead.
static browser:DynamicContains flags for the useragent, read from navigator.userAgent. This property was removed in jQuery 1.9 and is available only through the jQuery.migrate plugin. Please try to use feature detection instead.
static cssHooks:DynamicHook directly into jQuery to override how particular CSS properties are retrieved or set, normalize CSS property naming, or create custom properties.
static cssNumber:DynamicAn 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.
static fn:DynamicAn alias to jQuery.prototype.
static fx:{off:Bool, interval:Float}static support:DynamicA 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.
static Callbacks (flags:String):CallbacksA multi-purpose callbacks list object that provides a powerful way to manage callback lists.
static Deferred (?beforeStart:Deferred ‑> Void):DeferredA factory function that returns a chainable utility object with methods to register multiple callbacks into callback queues, invoke callback queues, and relay the success or failure state of any synchronous or asynchronous function.
static ajax (?settings:Dynamic):JqXHRstatic ajax (url:String, ?settings:Dynamic):JqXHRPerform an asynchronous HTTP (Ajax) request.
static ajaxPrefilter (?dataTypes:String, handler:Dynamic ‑> Dynamic ‑> JqXHR ‑> Void):VoidHandle custom Ajax options or modify existing options before each request is sent and before they are processed by $.ajax().
static ajaxSetup (options:Dynamic):VoidSet default values for future Ajax requests. Its use is not recommended.
static ajaxTransport (dataType:String, handler:Dynamic ‑> Dynamic ‑> JqXHR ‑> Void):VoidCreates an object that handles the actual transmission of Ajax data.
static contains (container:Element, contained:Element):BoolCheck to see if a DOM element is a descendant of another DOM element.
static data (element:Element):Dynamicstatic data (element:Element, key:String):Dynamicstatic data (element:Element, key:String, value:Dynamic):DynamicReturns value at named data store for the element, as set by jQuery.data(element, name, value), or the full data store for the element. OR Store arbitrary data associated with the specified element. Returns the value that was set.
static dequeue (element:Element, ?queueName:String):VoidExecute the next function on the queue for the matched element.
static each (array:Array<Dynamic>, callback:Int ‑> Dynamic ‑> Void):Dynamicstatic each (object:Dynamic, callback:String ‑> Dynamic ‑> Void):DynamicA 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.
static error (message:String):VoidTakes a string and throws an exception containing it.
static escapeSelector (selector:String):StringEscapes any character that has a special meaning in a CSS selector.
static extend (target:Dynamic, ?object1:Dynamic, ?objectN:Dynamic):Dynamicstatic extend (?deep:Bool, target:Dynamic, object1:Dynamic, ?objectN:Dynamic):DynamicMerge the contents of two or more objects together into the first object.
static get (settings:Dynamic):JqXHRstatic get (url:String, ?data:Dynamic, ?success:Dynamic ‑> String ‑> JqXHR ‑> Void, ?dataType:String):JqXHRLoad data from the server using a HTTP GET request.
static getJSON (url:String, ?data:Dynamic, ?success:Dynamic ‑> String ‑> JqXHR ‑> Void):JqXHRLoad JSON-encoded data from the server using a GET HTTP request.
static getScript (url:String, ?success:String ‑> String ‑> JqXHR ‑> Void):JqXHRLoad a JavaScript file from the server using a GET HTTP request, then execute it.
static globalEval (code:String):VoidExecute some JavaScript code globally.
static grep (array:EitherType<Array<Dynamic>, NodeList>, _function:Dynamic ‑> Int ‑> Bool, ?invert:Bool):Array<Dynamic>Finds the elements of an array which satisfy a filter function. The original array is not affected.
static hasData (element:Element):BoolDetermine whether an element has any jQuery data associated with it.
static holdReady (hold:Bool):VoidHolds or releases the execution of jQuery's ready event.
static htmlPrefilter (html:String):StringModify and filter HTML strings passed through jQuery manipulation methods.
static inArray (value:Dynamic, array:Array<Dynamic>, ?fromIndex:Float):FloatSearch for a specified value within an array and return its index (or -1 if not found).
static isArray (obj:Dynamic):BoolDetermine whether the argument is an array.
static isEmptyObject (object:Dynamic):BoolCheck to see if an object is empty (contains no enumerable properties).
static isFunction (obj:Dynamic):BoolDetermine if the argument passed is a JavaScript function object.
static isNumeric (value:Dynamic):BoolDetermines whether its argument represents a JavaScript number.
static isPlainObject (object:Dynamic):BoolCheck to see if an object is a plain object (created using "{}" or "new Object").
static isWindow (obj:Dynamic):BoolDetermine whether the argument is a window.
static isXMLDoc (node:Element):BoolCheck to see if a DOM node is within an XML document (or is an XML document).
static makeArray (obj:Dynamic):Array<Dynamic>Convert an array-like object into a true JavaScript array.
static map (array:Array<Dynamic>, callback:Dynamic ‑> Int ‑> Dynamic):Array<Dynamic>static map (object:Dynamic, callback:Dynamic ‑> String ‑> Dynamic):Array<Dynamic>Translate all items in an array or object to new array of items.
static merge (first:EitherType<Array<Dynamic>, NodeList>, second:EitherType<Array<Dynamic>, NodeList>):Array<Dynamic>Merge the contents of two arrays together into the first array.
static noConflict (?removeAll:Bool):DynamicRelinquish jQuery's control of the $ variable.
static noop ():VoidAn empty function.
static now ():FloatReturn a number representing the current time.
static param (obj:Dynamic):Stringstatic param (obj:Dynamic, traditional:Bool):StringCreate 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.
static parseHTML (data:String, ?context:Element, ?keepScripts:Bool):Array<Element>Parses a string into an array of DOM nodes.
static parseJSON (json:String):DynamicTakes a well-formed JSON string and returns the resulting JavaScript value.
static parseXML (data:String):DocumentParses a string into an XML document.
static post (settings:Dynamic):JqXHRstatic post (url:String, ?data:Dynamic, ?success:Dynamic ‑> String ‑> JqXHR ‑> Void, ?dataType:String):JqXHRLoad data from the server using a HTTP POST request.
static proxy (_function:Function, context:Dynamic):Functionstatic proxy (context:Dynamic, name:String):Functionstatic proxy (_function:Function, context:Dynamic, ?additionalArguments:Dynamic):Functionstatic proxy (context:Dynamic, name:String, ?additionalArguments:Dynamic):FunctionTakes a function and returns a new one that will always have a particular context.
static queue (element:Element, ?queueName:String):Array<Void ‑> Void>static queue (element:Element, queueName:String, newQueue:Array<Void ‑> Void>):JQuerystatic queue (element:Element, queueName:String, callback:Function):JQueryShow the queue of functions to be executed on the matched element. OR Manipulate the queue of functions to be executed on the matched element.
static dynamic readyException (error:Error):StringHandles errors thrown synchronously in functions wrapped in jQuery().
static removeData (element:Element, ?name:String):JQueryRemove a previously-stored piece of data.
static speed (settings:Dynamic):Dynamicstatic speed (?duration:EitherType<Float, String>, ?settings:Dynamic):Dynamicstatic speed (?duration:EitherType<Float, String>, ?easing:String, ?complete:Function):DynamicCreates an object containing a set of properties ready to be used in the definition of custom animations.
static sub ():JQueryCreates a new copy of jQuery whose properties and methods can be modified without affecting the original jQuery object.
static trim (str:String):StringRemove the whitespace from the beginning and end of a string.
static type (obj:Dynamic):StringDetermine the internal JavaScript [[Class]] of an object.
static unique (array:Array<Element>):Array<Element>Sorts an array of DOM elements, in place, with the duplicates removed. Note that this only works on arrays of DOM elements, not strings or numbers.
static uniqueSort (array:Array<Element>):Array<Element>Sorts an array of DOM elements, in place, with the duplicates removed. Note that this only works on arrays of DOM elements, not strings or numbers.
static when (deferreds:Rest<Deferred>):PromiseProvides a way to execute callback functions based on zero or more objects, usually Deferred objects that represent asynchronous events.
© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/jquery/JQuery.html