Module Ojquery

module Ojquery : sig..end

jQuery binding for ocaml


type t
val jQ : t -> t

Easy way to call the jQuery object jQ "#foo" <=> $("#foo") *

val jQelt : < .. > Js.t -> t

Easy way to call the jQuery object jQ "#foo" <=> $("#foo") *

val js_jQ : string -> < .. > Js.t

Easy way to call the jQuery object jQ "#foo" <=> $("#foo") *

val js_jQelt : < .. > Js.t -> < .. > Js.t

Easy way to call the jQuery object jQ "#foo" <=> $("#foo") *

val add_elts : t -> Dom_html.element Js.t -> t

Add elements to the set of matched elements.

val add_html : t -> string -> t

Add elements to the set of matched elements.

val add_jq_elt : t -> t -> t

Add elements to the set of matched elements.

val add_selector : t -> string -> t

Add elements to the set of matched elements.

val add_selector_context : t -> string -> Dom_html.element Js.t -> t

Add elements to the set of matched elements.

val add_back : t -> string -> t

Add the previous set of elements on the stack to the current set, optionally filtered by a selector.

val add_class : t -> string -> t

Adds the specified class(es) to each of the set of matched elements.

val add_class_with_func : t -> (int -> string -> unit) -> t

Adds the specified class(es) to each of the set of matched elements.

val after_html : t -> string -> t

Insert content, specified by the parameter, after each element in the set of matched elements.

val after_elt : t -> Dom_html.element Js.t -> t

Insert content, specified by the parameter, after each element in the set of matched elements.

val after_jqelt : t -> t -> t

Insert content, specified by the parameter, after each element in the set of matched elements.

val after : t -> (int -> t) -> t

Insert content, specified by the parameter, after each element in the set of matched elements.

val and_self : t -> t

Add the previous set of elements on the stack to the current set.

val animate_js_obj : t -> < .. > Js.t -> t
val append_html : t -> string -> t

Insert content, specified by the parameter, to the end of each element in the set of matched elements.

val append_elt : t -> Dom_html.element Js.t -> t

Insert content, specified by the parameter, to the end of each element in the set of matched elements.

val append_jqelt : t -> t -> t

Insert content, specified by the parameter, to the end of each element in the set of matched elements.

val append : t -> (int -> string -> t) -> t

Insert content, specified by the parameter, to the end of each element in the set of matched elements.

val append_to_html : t -> string -> t

Insert every element in the set of matched elements to the end of the target.

val append_to_elt : t -> Dom_html.element Js.t -> t

Insert every element in the set of matched elements to the end of the target.

val append_to_jq : t -> t -> t

Insert every element in the set of matched elements to the end of the target.

val attr : t -> string -> string

Get the value of an attribute for the first element in the set of matched elements.

val before_html : t -> string -> t

Insert content, specified by the parameter, before each element in the set of matched elements.

val before_elt : t -> Dom_html.element Js.t -> t

Insert content, specified by the parameter, before each element in the set of matched elements.

val before_jq : t -> t -> t

Insert content, specified by the parameter, before each element in the set of matched elements.

val before : t -> (unit -> string) -> t

Insert content, specified by the parameter, before each element in the set of matched elements.

val bind : t -> string -> < .. > Js.t -> (unit -> unit) -> t

Attach a handler to an event for the elements.

val bind_prevent_bubble : t -> string -> < .. > Js.t -> bool -> t

Attach a handler to an event for the elements.

val bind_events : t -> < .. > Js.t -> t

Attach a handler to an event for the elements.

val blur : t -> t

Bind an event handler to the "blur" JavaScript event, or trigger that event on an element.

val blur_with_data : t -> < .. > Js.t -> (unit -> unit) -> t

Bind an event handler to the "blur" JavaScript event, or trigger that event on an element.

val blur_with_handler : t -> (unit -> unit) -> t
val change : t -> t

Bind an event handler to the "change" JavaScript event, or trigger that event on an element.

val change_with_data : t -> < .. > Js.t -> (unit -> unit) -> t

Bind an event handler to the "change" JavaScript event, or trigger that event on an element.

val change_with_event : t -> (unit -> unit) -> t

Bind an event handler to the "change" JavaScript event, or trigger that event on an element.

val children : t -> ?selector:string -> unit -> t

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.

val clear_queue : t -> ?queue_name:string -> unit -> t

Remove from the queue all items that have not yet been run.

queue_name : A string containing the name of the queue. Defaults to fx, the standard effects queue.

val click : t -> t

Bind an event handler to the "click" JavaScript event, or trigger that event on an element.

val click_with_data : t -> < .. > Js.t -> (unit -> unit) -> t

Bind an event handler to the "click" JavaScript event, or trigger that event on an element.

val click_with_event : t -> (unit -> unit) -> t

Bind an event handler to the "click" JavaScript event, or trigger that event on an element.

val clone : 
  t ->
  ?with_data_and_events:bool ->
  ?deep_with_data_and_events:bool -> unit -> t

Create a deep copy of the set of matched elements.

with_data_and_events : A Boolean indicating whether event handlers and data should be copied along with the elements. The default value is false. *In jQuery 1.5.0 the default value was incorrectly true; it was changed back to false in 1.5.1 and up.

deep_with_data_and_events : A Boolean indicating whether event handlers and data for all children of the cloned element should be copied. By default its value matches the first argument's value (which defaults to false).

val closest_elt : t -> Dom_html.element Js.t -> t

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.

val closest_jq : t -> t -> t

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.

val closest_selector : t -> string -> t

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.

val closest_selector_context : 
  t -> ?context:Dom_html.element Js.t -> string -> t

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.

context : A DOM element within which a matching element may be found. If no context is passed in then the context of the jQuery set will be used instead.

val contents : t -> t

Get the children of each element in the set of matched elements, including text and comment nodes.

val css : t -> string -> string

Get the value of style properties for the first element in the set of matched elements.

val data : t -> string -> < .. > Js.t -> t

Store arbitrary data associated with the matched elements.

val data_keyval : t -> < .. > Js.t -> t

Store arbitrary data associated with the matched elements.

val dblclick : t -> t

Bind an event handler to the "dblclick" JavaScript event, or trigger that event on an element.

val dblclick_with_data : t -> < .. > Js.t -> (unit -> unit) -> t

Bind an event handler to the "dblclick" JavaScript event, or trigger that event on an element.

val dblclick_with_handler : t -> (unit -> unit) -> t

Bind an event handler to the "dblclick" JavaScript event, or trigger that event on an element.

val delay : t -> ?queue_name:string -> int -> t

Set a timer to delay execution of subsequent items in the queue.

queue_name : A string containing the name of the queue. Defaults to fx, the standard effects queue.

val delegate_with_data : 
  t ->
  string -> string -> < .. > Js.t -> (unit -> unit) -> t

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

val delegate_with_handler : t -> string -> string -> (unit -> unit) -> t

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

val delegate : t -> string -> < .. > Js.t -> t

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

val dequeue : t -> ?queue_name:string -> unit -> t

Execute the next function on the queue for the matched elements.

queue_name : A string containing the name of the queue. Defaults to fx, the standard effects queue.

val detach : t -> ?selector:string -> unit -> t

Remove the set of matched elements from the DOM.

selector : A selector expression that filters the set of matched elements to be removed.

val die : t -> t

Remove event handlers previously attached using .live() from the elements.

val die_with_handler : t -> ?handler:(unit -> unit) -> string -> t

Remove event handlers previously attached using .live() from the elements.

handler : The function that is no longer to be executed.

val die_with_events : t -> < .. > Js.t -> t

Remove event handlers previously attached using .live() from the elements.

val each : t -> (int -> t -> unit) -> t

Iterate over a jQuery object, executing a function for each matched element.

val empty : t -> t

Remove all child nodes of the set of matched elements from the DOM.

val _end : t -> t

End the most recent filtering operation in the current chain and return the set of matched elements to its previous state.

val eq : t -> int -> t

Reduce the set of matched elements to the one at the specified index.

val eq : t -> int -> t

Reduce the set of matched elements to the one at the specified index.

val error_with_data : t -> < .. > Js.t -> (unit -> unit) -> t

Bind an event handler to the "error" JavaScript event

val error : t -> (unit -> unit) -> t
val event_dotcurrent_target : t -> Dom_html.element Js.t

The current DOM element within the event bubbling phase.

val event_dotdata : t -> < .. > Js.t

An optional object of data passed to an event method when the current executing handler is bound.

val event_dotdelegate_target : t -> Dom_html.element Js.t

The element where the currently-called jQuery event handler was attached.

val event_dotis_default_prevented : t -> bool

Returns whether

val event_dotis_immediate_propagation_stopped : t -> bool

Returns whether event.stopImmediatePropagation() was ever called on this event object.

val event_dotis_propagation_stopped : t -> bool

Returns whether

val event_dotmeta_key : t -> bool

Indicates whether the META key was pressed when the event fired.

val event_dotnamespace : t -> string

The namespace specified when the event was triggered.

val event_dotpage_x : t -> float

The mouse position relative to the left edge of the document.

val event_dotpage_y : t -> float

The mouse position relative to the top edge of the document.

val event_dotrelated_target : t -> Dom_html.element Js.t

The other DOM element involved in the event, if any.

val event_dotresult : t -> < .. > Js.t

The last value returned by an event handler that was triggered by this event, unless the value was

val event_dotstop_immediate_propagation : t -> unit

Keeps the rest of the handlers from being executed and prevents the event from bubbling up the DOM tree.

val event_dotstop_propagation : t -> unit

Prevents the event from bubbling up the DOM tree, preventing any parent handlers from being notified of the event.

val event_dottarget : t -> Dom_html.element Js.t

The DOM element that initiated the event.

val event_dottime_stamp : t -> float

The difference in milliseconds between the time the browser created the event and January 1, 1970.

val event_dottype : t -> string

Describes the nature of the event.

val event_dotwhich : t -> float

For key or mouse events, this property indicates the specific key or button that was pressed.

val fade_in : 
  t ->
  ?duration:string -> ?complete:(unit -> unit) -> unit -> t

Display the matched elements by fading them to opaque.

duration : Either an int or a string like 'slow', or 'fast'

complete : A function to call once the animation is complete.

val fade_out : 
  t ->
  ?duration:string -> ?complete:(unit -> unit) -> unit -> t

duration : Either an int or a string like 'slow', or 'fast'

complete : A function to call once the animation is complete.

val fade_to : t -> string -> float -> string -> (unit -> unit) -> t
val fade_to : t -> string -> float -> string -> (unit -> unit) -> t
val fade_toggle : 
  t ->
  ?duration:string -> ?complete:(unit -> unit) -> unit -> t

duration : Either an int or a string like 'slow', or 'fast'

complete : A function to call once the animation is complete.

val filter_elt : t -> Dom_html.element Js.t -> t

Reduce the set of matched elements to those that match the selector or pass the function's test.

val filter_fun : t -> (int -> bool) -> t

Reduce the set of matched elements to those that match the selector or pass the function's test.

val filter_jq : t -> < .. > Js.t -> t

Reduce the set of matched elements to those that match the selector or pass the function's test.

val filter_selector : t -> string -> t

Reduce the set of matched elements to those that match the selector or pass the function's test.

val find_elt : t -> Dom_html.element Js.t -> t

Get the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element.

val find_jq : t -> < .. > Js.t -> t

Get the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element.

val find_selector : t -> string -> t

Get the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element.

val finish : t -> string -> t
val first : t -> t

Reduce the set of matched elements to the first in the set.

val focus : t -> t

Bind an event handler to the "focus" JavaScript event, or trigger that event on an element.

val focus_with_data : t -> < .. > Js.t -> (unit -> unit) -> t

Bind an event handler to the "focus" JavaScript event, or trigger that event on an element.

val focus_with_handler : t -> (unit -> unit) -> t

Bind an event handler to the "focus" JavaScript event, or trigger that event on an element.

val focusin_with_data : t -> < .. > Js.t -> (unit -> unit) -> t

Bind an event handler to the "focusin" event.

val focusin_with_handler : t -> (unit -> unit) -> t

Bind an event handler to the "focusin" event.

val focusout_with_data : t -> < .. > Js.t -> (unit -> unit) -> t

Bind an event handler to the "focusout" event.

val focusout_with_handler : t -> (unit -> unit) -> t

Bind an event handler to the "focusout" event.

val get : t -> int -> Dom_html.element Js.t

Retrieve one of the DOM elements matched by the jQuery object.

val has_elt : t -> Dom_html.element Js.t -> t

Reduce the set of matched elements to those that have a descendant that matches the selector or DOM element.

val has_selector : t -> string -> t

Reduce the set of matched elements to those that have a descendant that matches the selector or DOM element.

val has_class : t -> string -> bool

Determine whether any of the matched elements are assigned the given class.

val height : t -> int

Get the current computed height for the first element in the set of matched elements.

val hide : 
  t ->
  ?duration:string ->
  ?easing:string -> ?complete:(unit -> unit) -> unit -> t

Hide the matched elements.

duration : A string or number determining how long the animation will run.

easing : A number between 0 and 1 denoting the target opacity.

complete : A function to call once the animation is complete.

val hover : t -> (unit -> unit) -> (unit -> unit) -> t

Bind one or two handlers to the matched elements, to be executed when the mouse pointer enters and leaves the elements.

val html : t -> string

Get the HTML contents of the first element in the set of matched elements.

val index : t -> string -> int

Search for a given element from among the matched elements.

val index_elt : t -> Dom_html.element Js.t -> int

Search for a given element from among the matched elements.

val index_jq : t -> t -> int

Search for a given element from among the matched elements.

val index : t -> string -> int

Search for a given element from among the matched elements.

val inner_height : t -> int

Get the current computed height for the first element in the set of matched elements, including padding but not border.

val inner_width : t -> int

Get the current computed width for the first element in the set of matched elements, including padding but not border.

val insert_after_selector : t -> string -> t

Insert every element in the set of matched elements after the target.

val insert_after_elt : t -> Dom_html.element Js.t -> t

Insert every element in the set of matched elements after the target.

val insert_after_jq : t -> t -> t

Insert every element in the set of matched elements after the target.

val insert_before_selector : t -> string -> t

Insert every element in the set of matched elements before the target.

val insert_before_elt : t -> Dom_html.element Js.t -> t

Insert every element in the set of matched elements before the target.

val insert_before_jq : t -> t -> t

Insert every element in the set of matched elements before the target.

val is_elt : t -> Dom_html.element Js.t -> bool

Check the current matched set of elements against a selector, element, or jQuery object and return

val is_with_func : t -> (int -> bool) -> bool

Check the current matched set of elements against a selector, element, or jQuery object and return

val is_js_obj : t -> < .. > Js.t -> bool

Check the current matched set of elements against a selector, element, or jQuery object and return

val is_selector : t -> string -> bool

Check the current matched set of elements against a selector, element, or jQuery object and return

val jQ : t -> t

Accepts a string containing a CSS selector which is then used to match a set of elements.

val jQ_elt : t -> Dom_html.element Js.t -> t

Accepts a string containing a CSS selector which is then used to match a set of elements.

val jQ_jq : t -> < .. > Js.t -> t

Accepts a string containing a CSS selector which is then used to match a set of elements.

val jQ_js : t -> < .. > Js.t -> t

Accepts a string containing a CSS selector which is then used to match a set of elements.

val jQ_selector : t -> string -> t

Accepts a string containing a CSS selector which is then used to match a set of elements.

val j_query_dotbrowser : t -> < .. > Js.t

Contains flags for the useragent, read from navigator.userAgent.

val j_query_dotcontains : 
  t -> Dom_html.element Js.t -> Dom_html.element Js.t -> bool

Check to see if a DOM element is a descendant of another DOM element.

val j_query_dotcss_hooks : t -> < .. > Js.t

Hook directly into jQuery to override how particular CSS properties are retrieved or set, normalize CSS property naming, or create custom properties.

val j_query_dotdata : 
  t ->
  Dom_html.element Js.t -> string -> < .. > Js.t -> < .. > Js.t

Store arbitrary data associated with the specified element. Returns the value that was set.

val j_query_dotdequeue : 
  t -> ?queue_name:string -> Dom_html.element Js.t -> unit

Execute the next function on the queue for the matched element.

queue_name : A string containing the name of the queue. Defaults to fx, the standard effects queue.

val j_query_doteach : t -> < .. > Js.t -> (unit -> unit) -> < .. > Js.t

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.

val j_query_doterror : t -> string -> unit

Takes a string and throws an exception containing it.

val j_query_dotextend : 
  t -> ?deep:bool -> < .. > Js.t -> < .. > Js.t -> < .. > Js.t

Merge the contents of two or more objects together into the first object.

deep : If true, the merge becomes recursive (aka. deep copy).

val j_query_dotfn_dotextend : t -> < .. > Js.t -> < .. > Js.t

Merge the contents of an object onto the jQuery prototype to provide new jQuery instance methods.

val j_query_dotfx_dotinterval : t -> float
val j_query_dotfx_dotoff : t -> bool
val j_query_dotglobal_eval : t -> string -> unit

Execute some JavaScript code globally.

val j_query_dothas_data : t -> Dom_html.element Js.t -> bool

Determine whether an element has any jQuery data associated with it.

val j_query_dothold_ready : t -> bool -> unit
val j_query_dotis_array : t -> < .. > Js.t -> bool

Determine whether the argument is an array.

val j_query_dotis_empty_object : t -> < .. > Js.t -> bool

Check to see if an object is empty (contains no enumerable properties).

val j_query_dotis_function : t -> < .. > Js.t -> bool

Determine if the argument passed is a Javascript function object.

val j_query_dotis_numeric : t -> < .. > Js.t -> bool
val j_query_dotis_plain_object : t -> < .. > Js.t -> bool

Check to see if an object is a plain object (created using brackets or "new Object").

val j_query_dotis_window : t -> < .. > Js.t -> bool

Determine whether the argument is a window.

val j_query_dotis_xmldoc : t -> Dom_html.element Js.t -> bool

Check to see if a DOM node is within an XML document (or is an XML document).

val j_query_dotno_conflict : t -> bool -> < .. > Js.t

Relinquish jQuery's control of the

val j_query_dotnow : t -> float

Return a number representing the current time.

val j_query_dotparse_json : t -> string -> < .. > Js.t

Takes a well-formed JSON string and returns the resulting JavaScript object.

val j_query_dotparse_xml : t -> string -> Dom.element Js.t
val j_query_dotremove_data : t -> Dom_html.element Js.t -> string -> t

Remove a previously-stored piece of data.

val j_query_dotsub : t -> t

Creates a new copy of jQuery whose properties and methods can be modified without affecting the original jQuery object.

val j_query_dotsupport : t -> < .. > Js.t

A collection of properties that represent the presence of different browser features or bugs. Primarily intended for jQuery's internal use; specific properties may be removed when they are no longer needed internally to improve page startup performance.

val j_query_dottrim : t -> string -> string

Remove the whitespace from the beginning and end of a string.

val j_query_dottype : t -> < .. > Js.t -> string

Determine the internal JavaScript [Class] of an object.

val jquery : t -> string

A string containing the jQuery version number.

val keydown : t -> t

Bind an event handler to the "keydown" JavaScript event, or trigger that event on an element.

val keydown_with_data : t -> < .. > Js.t -> (unit -> unit) -> t

Bind an event handler to the "keydown" JavaScript event, or trigger that event on an element.

val keydown_with_handler : t -> (unit -> unit) -> t

Bind an event handler to the "keydown" JavaScript event, or trigger that event on an element.

val keypress : t -> t

Bind an event handler to the "keypress" JavaScript event, or trigger that event on an element.

val keypress_with_data : t -> < .. > Js.t -> (unit -> unit) -> t

Bind an event handler to the "keypress" JavaScript event, or trigger that event on an element.

val keypress_with_handler : t -> (unit -> unit) -> t

Bind an event handler to the "keypress" JavaScript event, or trigger that event on an element.

val keyup : t -> t

Bind an event handler to the "keyup" JavaScript event, or trigger that event on an element.

val keyup_with_data : t -> < .. > Js.t -> (unit -> unit) -> t

Bind an event handler to the "keyup" JavaScript event, or trigger that event on an element.

val keyup_with_handler : t -> (unit -> unit) -> t

Bind an event handler to the "keyup" JavaScript event, or trigger that event on an element.

val last : t -> t

Reduce the set of matched elements to the final one in the set.

val length : t -> int

The number of elements in the jQuery object.

val live_with_data : t -> string -> < .. > Js.t -> (unit -> unit) -> t
val live_with_handler : t -> string -> (unit -> unit) -> t
val live : t -> < .. > Js.t -> t
val load_with_data : t -> < .. > Js.t -> (unit -> unit) -> t
val load_with_handler : t -> (unit -> unit) -> t
val map : 
  t ->
  (int -> Dom_html.element -> Dom_html.element) -> t

Pass each element in the current matched set through a function, producing a new jQuery object containing the return values.

val mousedown : t -> t

Bind an event handler to the "mousedown" JavaScript event, or trigger that event on an element.

val mousedown_with_data : t -> < .. > Js.t -> (unit -> unit) -> t

Bind an event handler to the "mousedown" JavaScript event, or trigger that event on an element.

val mousedown_with_handler : t -> (unit -> unit) -> t

Bind an event handler to the "mousedown" JavaScript event, or trigger that event on an element.

val mouseenter : t -> t

Bind an event handler to be fired when the mouse enters an element, or trigger that handler on an element.

val mouseenter_with_data : t -> < .. > Js.t -> (unit -> unit) -> t

Bind an event handler to be fired when the mouse enters an element, or trigger that handler on an element.

val mouseenter_with_handler : t -> (unit -> unit) -> t

Bind an event handler to be fired when the mouse enters an element, or trigger that handler on an element.

val mouseleave : t -> t

Bind an event handler to be fired when the mouse leaves an element, or trigger that handler on an element.

val mouseleave_with_data : t -> < .. > Js.t -> (unit -> unit) -> t

Bind an event handler to be fired when the mouse leaves an element, or trigger that handler on an element.

val mouseleave_with_handler : t -> (unit -> unit) -> t

Bind an event handler to be fired when the mouse leaves an element, or trigger that handler on an element.

val mousemove : t -> t

Bind an event handler to be fired when the mouse leaves an element, or trigger that handler on an element.

val mousemove_with_data : t -> < .. > Js.t -> (unit -> unit) -> t

Bind an event handler to the "mousemove" JavaScript event, or trigger that event on an element.

val mousemove_with_handler : t -> (unit -> unit) -> t

Bind an event handler to the "mousemove" JavaScript event, or trigger that event on an element.

val mouseout : t -> t

Bind an event handler to the "mouseout" JavaScript event, or trigger that event on an element.

val mouseout_with_data : t -> < .. > Js.t -> (unit -> unit) -> t

Bind an event handler to the "mouseout" JavaScript event, or trigger that event on an element.

val mouseout_with_handler : t -> (unit -> unit) -> t

Bind an event handler to the "mouseout" JavaScript event, or trigger that event on an element.

val mouseover : t -> t

Bind an event handler to the "mouseover" JavaScript event, or trigger that event on an element.

val mouseover_with_data : t -> < .. > Js.t -> (unit -> unit) -> t

Bind an event handler to the "mouseover" JavaScript event, or trigger that event on an element.

val mouseover_handler : t -> (unit -> unit) -> t

Bind an event handler to the "mouseover" JavaScript event, or trigger that event on an element.

val mouseup : t -> t

Bind an event handler to the "mouseup" JavaScript event, or trigger that event on an element.

val mouseup_with_data : t -> < .. > Js.t -> (unit -> unit) -> t

Bind an event handler to the "mouseup" JavaScript event, or trigger that event on an element.

val mouseup_with_handler : t -> (unit -> unit) -> t

Bind an event handler to the "mouseup" JavaScript event, or trigger that event on an element.

val next : t -> ?selector:string -> unit -> t

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.

val next_all : t -> ?selector:string -> unit -> t

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.

val next_until : t -> ?selector:string -> ?filter:string -> unit -> t

Get all following siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object passed.

filter : A string containing a selector expression to match elements against.

val next_until : t -> ?selector:string -> ?filter:string -> unit -> t

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.

val _not : t -> Dom_html.element Js.t -> t

Remove elements from the set of matched elements.

val _not_func : t -> (int -> bool) -> t

Remove elements from the set of matched elements.

val _not_jq : t -> t -> t

Remove elements from the set of matched elements.

val _not_selector : t -> string -> t

Remove elements from the set of matched elements.

val off_with_handler : t -> string -> string -> (unit -> unit) -> t
val off : t -> < .. > Js.t -> string -> t
val offset : t -> < .. > Js.t

Get the current coordinates of the first element in the set of matched elements, relative to the document.

val offset_parent : t -> t

Get the closest ancestor element that is positioned.

val one : t -> string -> < .. > Js.t -> (unit -> unit) -> t

Attach a handler to an event for the elements. The handler is executed at most once per element.

val outer_height : t -> ?include_margin:bool -> unit -> int

Get the current computed height for the first element in the set of matched elements, including padding, border, and optionally margin. Returns an integer (without "px") representation of the value or null if called on an empty set of elements.

include_margin : A Boolean indicating whether to include the element's margin in the calculation.

val outer_width : t -> ?include_margin:bool -> unit -> int

Get the current computed width for the first element in the set of matched elements, including padding and border.

include_margin : A Boolean indicating whether to include the element's margin in the calculation.

val parent : t -> ?selector:string -> unit -> t

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.

val parents : t -> ?selector:string -> unit -> t

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.

val parents_until : t -> ?selector:string -> ?filter:string -> unit -> t

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.

val parents_until : t -> ?selector:string -> ?filter:string -> unit -> t

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 : A string containing a selector expression to indicate where to stop matching ancestor elements.

filter : A string containing a selector expression to match elements against.

val position : t -> < .. > Js.t

Get the current coordinates of the first element in the set of matched elements, relative to the offset parent.

val prepend_jq : t -> t -> t

Insert content, specified by the parameter, to the beginning of each element in the set of matched elements.

val prepend_html : t -> string -> t

Insert content, specified by the parameter, to the beginning of each element in the set of matched elements.

val prepend_to_html : t -> string -> t

Insert every element in the set of matched elements to the beginning of the target.

val prepend_to_jQ : t -> t -> t

Insert every element in the set of matched elements to the beginning of the target.

val prepend_to_elt : t -> Dom_html.element Js.t -> t

Insert every element in the set of matched elements to the beginning of the target.

val prev : t -> ?selector:string -> unit -> t

Get the immediately preceding sibling 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.

val prev_all : t -> ?selector:string -> unit -> t

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.

val prev_until_jq : t -> ?element:t -> ?filter:string -> unit -> t

Get all preceding siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object.

element : A jQuery object indicating where to stop matching preceding sibling elements.

filter : A string containing a selector expression to match elements against.

val prev_until_elt : 
  t ->
  ?element:Dom_html.element Js.t -> ?filter:string -> unit -> t

Get all preceding siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object.

element : A DOM node or jQuery object indicating where to stop matching preceding sibling elements.

filter : A string containing a selector expression to match elements against.

val prev_until_selector : 
  t -> ?selector:string -> ?filter:string -> unit -> t

Get all preceding siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object.

selector : A string containing a selector expression to indicate where to stop matching preceding sibling elements.

filter : A string containing a selector expression to match elements against.

val ready : t -> (unit -> unit) -> t

Specify a function to execute when the DOM is fully loaded.

val remove : t -> ?selector:string -> unit -> t

Remove the set of matched elements from the DOM.

selector : A selector expression that filters the set of matched elements to be removed.

val remove_attr : t -> string -> t

Remove an attribute from each element in the set of matched elements.

val remove_class : t -> ?class_name:string -> unit -> t

Remove a single class, multiple classes, or all classes from each element in the set of matched elements.

class_name : One or more space-separated classes to be removed from the class attribute of each matched element.

val remove_class_func : t -> (int -> < .. > Js.t -> unit) -> t

Remove a single class, multiple classes, or all classes from each element in the set of matched elements.

val remove_data : t -> string -> t

Remove a previously-stored piece of data.

val remove_prop : t -> string -> t

Remove a property for the set of matched elements.

val replace_all_selector : t -> string -> t

Replace each target element with the set of matched elements.

val replace_all_jq : t -> t -> t

Replace each target element with the set of matched elements.

val replace_all_elt : t -> Dom_html.element Js.t -> t

Replace each target element with the set of matched elements.

val replace_with_jq : t -> t -> t

Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed.

val replace_with_html : t -> string -> t

Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed.

val replace_with_elt : t -> Dom_html.element Js.t -> t

Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed.

val resize : t -> t

Bind an event handler to the "resize" JavaScript event, or trigger that event on an element.

val resize_with_data : t -> < .. > Js.t -> (unit -> unit) -> t

Bind an event handler to the "resize" JavaScript event, or trigger that event on an element.

val resize_with_event : t -> (unit -> unit) -> t

Bind an event handler to the "resize" JavaScript event, or trigger that event on an element.

val scroll : t -> t

Bind an event handler to the "scroll" JavaScript event, or trigger that event on an element.

val scroll_with_data : t -> < .. > Js.t -> (unit -> unit) -> t

Bind an event handler to the "scroll" JavaScript event, or trigger that event on an element.

val scroll_with_handler : t -> (unit -> unit) -> t

Bind an event handler to the "scroll" JavaScript event, or trigger that event on an element.

val scroll_left : t -> int

Get the current horizontal position of the scroll bar for the first element in the set of matched elements.

val scroll_top : t -> int

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.

val select : t -> t

Bind an event handler to the "select" JavaScript event, or trigger that event on an element.

val select_with_data : t -> < .. > Js.t -> (unit -> unit) -> t

Bind an event handler to the "select" JavaScript event, or trigger that event on an element.

val select_with_handler : t -> (unit -> unit) -> t

Bind an event handler to the "select" JavaScript event, or trigger that event on an element.

val serialize : t -> string

Encode a set of form elements as a string for submission.

val show : 
  t ->
  ?duration:string -> ?complete:(unit -> unit) -> unit -> t

Display the matched elements.

duration : Either an int or a string like 'slow', or 'fast'

complete : A function to call once the animation is complete.

val show_with_easing : 
  t -> ?complete:(unit -> unit) -> string -> string -> t

Display the matched elements.

complete : A function to call once the animation is complete.

val siblings : t -> ?selector:string -> unit -> t

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.

val size : t -> int

Return the number of elements in the jQuery object.

val slice : t -> ?_end:int -> int -> t

Reduce the set of matched elements to a subset specified by a range of indices.

_end : An integer indicating the 0-based position at which the elements stop being selected. If negative, it indicates an offset from the end of the set. If omitted, the range continues until the end of the set.

val slide_down : 
  t ->
  ?duration:string ->
  ?easing:string -> ?complete:(unit -> unit) -> unit -> t

Display the matched elements with a sliding motion.

duration : Either an int or a string like 'slow', or 'fast'

easing : A string indicating which easing function to use for the transition.

complete : A function to call once the animation is complete.

val slide_toggle : 
  t ->
  ?duration:string ->
  ?easing:string -> ?complete:(unit -> unit) -> unit -> t

Display or hide the matched elements with a sliding motion.

duration : Either an int or a string like 'slow', or 'fast'

easing : A string indicating which easing function to use for the transition.

complete : A function to call once the animation is complete.

val slide_up : 
  t ->
  ?duration:string ->
  ?easing:string -> ?complete:(unit -> unit) -> unit -> t

Hide the matched elements with a sliding motion.

duration : Either an int or a string like 'slow', or 'fast'

easing : A string indicating which easing function to use for the transition.

complete : A function to call once the animation is complete.

val stop : t -> bool -> bool -> t

Stop the currently-running animation on the matched elements.

val stop_named_queue : t -> string -> bool -> bool -> t

Stop the currently-running animation on the matched elements.

val submit : t -> t

Bind an event handler to the "submit" JavaScript event, or trigger that event on an element.

val submit_with_data : t -> < .. > Js.t -> (unit -> unit) -> t

Bind an event handler to the "submit" JavaScript event, or trigger that event on an element.

val submit_with_handler : t -> (unit -> unit) -> t

Bind an event handler to the "submit" JavaScript event, or trigger that event on an element.

val text : t -> string

Get the combined text contents of each element in the set of matched elements, including their descendants.

val text_set : t -> string -> t

Set the content of each element in the set of matched elements to the specified text.

val text_set_func : t -> (int -> string -> string) -> t

Set the content of each element in the set of matched elements to the specified text.

val toggle : 
  t ->
  ?duration:string -> ?complete:(unit -> unit) -> unit -> t

Display or hide the matched elements.

duration : Either an int or a string like 'slow', or 'fast'

complete : A function to call once the animation is complete.

val toggle_wih_easing : 
  t -> ?complete:(unit -> unit) -> string -> string -> t

Display or hide the matched elements.

complete : A function to call once the animation is complete.

val toggle_with_handler : 
  t ->
  ?additionnal_handler_event_object_:(unit -> unit) ->
  (unit -> unit) -> (unit -> unit) -> t

Display or hide the matched elements.

additionnal_handler_event_object_ : Additional handlers to cycle through after clicks.

val toggle_with_bool : t -> bool -> t

Display or hide the matched elements.

val toggle_class : t -> ?switch:bool -> unit -> t

Add 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 switch argument.

val toggle_class : t -> ?switch:bool -> unit -> t

Add 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 switch argument.

switch : A Boolean (not just truthy/falsy) value to determine whether the class should be added or removed.

val toggle_class : t -> ?switch:bool -> unit -> t

Add 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 switch argument.

switch : A boolean value to determine whether the class should be added or removed.

val toggle_class : t -> ?switch:bool -> unit -> t

Add 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 switch argument.

switch : A boolean value to determine whether the class should be added or removed.

val unbind_with_event : t -> < .. > Js.t -> t

Remove a previously-attached event handler from the elements.

val unbind_return_false : t -> string -> t

Remove a previously-attached event handler from the elements.

val unbind_with_handler : t -> string -> (unit -> unit) -> t

Remove a previously-attached event handler from the elements.

val undelegate : t -> t

Remove a handler from the event for all elements which match the current selector, based upon a specific set of root elements.

val undelegate_namespace : t -> string -> t

Remove a handler from the event for all elements which match the current selector, based upon a specific set of root elements.

val undelegate_selector : t -> string -> string -> t

Remove a handler from the event for all elements which match the current selector, based upon a specific set of root elements.

val undelegate_handler : t -> string -> string -> (unit -> unit) -> t

Remove a handler from the event for all elements which match the current selector, based upon a specific set of root elements.

val undelegate_events : t -> string -> < .. > Js.t -> t

Remove a handler from the event for all elements which match the current selector, based upon a specific set of root elements.

val unload_with_data : t -> < .. > Js.t -> (unit -> unit) -> t

Bind an event handler to the "unload" JavaScript event.

val unload_with_handler : t -> (unit -> unit) -> t

Bind an event handler to the "unload" JavaScript event.

val unwrap : t -> t

Remove the parents of the set of matched elements from the DOM, leaving the matched elements in their place.

val width : t -> int

Get the current computed width for the first element in the set of matched elements.

val wrap : t -> (int -> t) -> t

Wrap an HTML structure around each element in the set of matched elements.

val wrap_html : t -> string -> t

Wrap an HTML structure around each element in the set of matched elements.

val wrap_jq : t -> t -> t

Wrap an HTML structure around each element in the set of matched elements.

val wrap_elt : t -> Dom_html.element Js.t -> t

Wrap an HTML structure around each element in the set of matched elements.

val wrap_all_html : t -> string -> t

Wrap an HTML structure around all elements in the set of matched elements.

val wrap_all_jq : t -> t -> t

Wrap an HTML structure around all elements in the set of matched elements.

val wrap_all_elt : t -> Dom_html.element Js.t -> t

Wrap an HTML structure around all elements in the set of matched elements.

val wrap_inner : t -> string -> t

Wrap an HTML structure around the content of each element in the set of matched elements.