-
dblclick( ) returns jQuery
Triggers the dblclick event of each matched element.
This causes all of the functions that have been bound to that dblclick event to be executed, and calls the browser's default dblclick action on the matching element(s). This default action can be prevented by returning false from one of the functions bound to the dblclick event. The dblclick event usually fires when the pointing device button is double clicked over an element. -
dblclick( Function fn ) returns jQuery
Binds a function to the dblclick event of each matched element.
The dblclick event fires when the pointing device button is double clicked over an elementExample:
To bind a "Hello World!" alert box the dblclick event on every paragraph on the page:
$("p").dblclick( function () { alert("Hello World!"); }); -
dequeue( ) returns jQuery
Removes a queued function from the front of the queue and executes it.
Example:
Use dequeue to end a custom queue function which allows the queue to keep going.
$("button").click(function () { $("div").animate({left:'+=200px'}, 2000); $("div").animate({top:'0px'}, 600); $("div").queue(function () { $(this).toggleClass("red"); $(this).dequeue(); }); $("div").animate({left:'10px', top:'30px'}, 700); });HTML:
<button>Start</button> <div></div> -
descendant( Selector ancestor, Selector descendant ) returns Array<Element>
Matches all descendant elements specified by "descendant" of elements specified by "ancestor".
Example:
Finds all input descendants of forms.
$("form input").css("border", "2px dotted blue");HTML:
<form> <div>Form is surrounded by the green outline</div> <label>Child:</label> <input name="name" /> <fieldset> <label>Grandchild:</label> <input name="newsletter" /> </fieldset> </form> Sibling to form: <input name="none" /> -
die(String type, Function fn ) returns jQuery
Without any arguments, all bound live events are removed.
You can also unbind custom events registered with live.
If the type is provided, all bound live events of that type are removed.
If the function that was passed to live is provided as the second argument, only that specific event handler is removed.
Example:
Can bind and unbind events to the colored button.
function aClick() { $("div").show().fadeOut("slow"); } $("#bind").click(function () { $("#theone").live("click", aClick) .text("Can Click!"); }); $("#unbind").click(function () { $("#theone").die("click", aClick) .text("Does nothing..."); });HTML:
<button id="theone">Does nothing...</button>
<button id="bind">Bind Click</button>
<button id="unbind">Unbind Click</button>
<div style="display: none;">Click!</div> -
disabled( ) returns Array<Element>
Matches all elements that are disabled.
Example:
Finds all input elements that are disabled.
$("input:disabled").val("this is it");HTML:
<form> <input name="email" disabled="disabled" /> <input name="id" /> </form>