-
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" /> -
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>