fn | Function | A function to bind to the dblclick event on each of the matched elements. |
---|
Bind a function to the dblclick event of each matched element.
<p>Hello</p>
$("p").dblclick( function() { alert("Hello"); } );
<p ondblclick="alert('Hello');">Hello</p>
Trigger the dblclick event of each matched element. This causes all of the functions that have been bound to thet dblclick event to be executed.
<p ondblclick="alert('Hello');">Hello</p>
$("p").dblclick();
alert('Hello');
fn | Function | A function to bind to the dblclick event on each of the matched elements. |
---|
Bind a function to the dblclick event of each matched element, which will only be executed once. Unlike a call to the normal .dblclick() method, calling .onedblclick() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).
<p ondblclick="alert('Hello');">Hello</p>
$("p").onedblclick( function() { alert("Hello"); } );
alert('Hello'); // Only executed for the first dblclick
fn | Function | A function to unbind from the dblclick event on each of the matched elements. |
---|
Removes a bound dblclick event from each of the matched elements. You must pass the identical function that was used in the original bind method.
<p ondblclick="myFunction">Hello</p>
$("p").undblclick( myFunction );
<p>Hello</p>
Removes all bound dblclick events from each of the matched elements.
<p ondblclick="alert('Hello');">Hello</p>
$("p").undblclick();
<p>Hello</p>
fn | Function | A function to bind to the mouseup event on each of the matched elements. |
---|
Bind a function to the mouseup event of each matched element.
<p>Hello</p>
$("p").mouseup( function() { alert("Hello"); } );
<p onmouseup="alert('Hello');">Hello</p>
Trigger the mouseup event of each matched element. This causes all of the functions that have been bound to thet mouseup event to be executed.
<p onmouseup="alert('Hello');">Hello</p>
$("p").mouseup();
alert('Hello');
fn | Function | A function to bind to the mouseup event on each of the matched elements. |
---|
Bind a function to the mouseup event of each matched element, which will only be executed once. Unlike a call to the normal .mouseup() method, calling .onemouseup() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).
<p onmouseup="alert('Hello');">Hello</p>
$("p").onemouseup( function() { alert("Hello"); } );
alert('Hello'); // Only executed for the first mouseup
fn | Function | A function to unbind from the mouseup event on each of the matched elements. |
---|
Removes a bound mouseup event from each of the matched elements. You must pass the identical function that was used in the original bind method.
<p onmouseup="myFunction">Hello</p>
$("p").unmouseup( myFunction );
<p>Hello</p>
Removes all bound mouseup events from each of the matched elements.
<p onmouseup="alert('Hello');">Hello</p>
$("p").unmouseup();
<p>Hello</p>
fn | Function | A function to bind to the mouseout event on each of the matched elements. |
---|
Bind a function to the mouseout event of each matched element.
<p>Hello</p>
$("p").mouseout( function() { alert("Hello"); } );
<p onmouseout="alert('Hello');">Hello</p>
Trigger the mouseout event of each matched element. This causes all of the functions that have been bound to thet mouseout event to be executed.
<p onmouseout="alert('Hello');">Hello</p>
$("p").mouseout();
alert('Hello');
fn | Function | A function to bind to the mouseout event on each of the matched elements. |
---|
Bind a function to the mouseout event of each matched element, which will only be executed once. Unlike a call to the normal .mouseout() method, calling .onemouseout() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).
<p onmouseout="alert('Hello');">Hello</p>
$("p").onemouseout( function() { alert("Hello"); } );
alert('Hello'); // Only executed for the first mouseout
fn | Function | A function to unbind from the mouseout event on each of the matched elements. |
---|
Removes a bound mouseout event from each of the matched elements. You must pass the identical function that was used in the original bind method.
<p onmouseout="myFunction">Hello</p>
$("p").unmouseout( myFunction );
<p>Hello</p>
Removes all bound mouseout events from each of the matched elements.
<p onmouseout="alert('Hello');">Hello</p>
$("p").unmouseout();
<p>Hello</p>
fn | Function | A function to bind to the click event on each of the matched elements. |
---|
Bind a function to the click event of each matched element.
<p>Hello</p>
$("p").click( function() { alert("Hello"); } );
<p onclick="alert('Hello');">Hello</p>
Trigger the click event of each matched element. This causes all of the functions that have been bound to thet click event to be executed.
<p onclick="alert('Hello');">Hello</p>
$("p").click();
alert('Hello');
fn | Function | A function to bind to the click event on each of the matched elements. |
---|
Bind a function to the click event of each matched element, which will only be executed once. Unlike a call to the normal .click() method, calling .oneclick() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).
<p onclick="alert('Hello');">Hello</p>
$("p").oneclick( function() { alert("Hello"); } );
alert('Hello'); // Only executed for the first click
fn | Function | A function to unbind from the click event on each of the matched elements. |
---|
Removes a bound click event from each of the matched elements. You must pass the identical function that was used in the original bind method.
<p onclick="myFunction">Hello</p>
$("p").unclick( myFunction );
<p>Hello</p>
Removes all bound click events from each of the matched elements.
<p onclick="alert('Hello');">Hello</p>
$("p").unclick();
<p>Hello</p>
fn | Function | A function to bind to the mousemove event on each of the matched elements. |
---|
Bind a function to the mousemove event of each matched element.
<p>Hello</p>
$("p").mousemove( function() { alert("Hello"); } );
<p onmousemove="alert('Hello');">Hello</p>
Trigger the mousemove event of each matched element. This causes all of the functions that have been bound to thet mousemove event to be executed.
<p onmousemove="alert('Hello');">Hello</p>
$("p").mousemove();
alert('Hello');
fn | Function | A function to bind to the mousemove event on each of the matched elements. |
---|
Bind a function to the mousemove event of each matched element, which will only be executed once. Unlike a call to the normal .mousemove() method, calling .onemousemove() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).
<p onmousemove="alert('Hello');">Hello</p>
$("p").onemousemove( function() { alert("Hello"); } );
alert('Hello'); // Only executed for the first mousemove
fn | Function | A function to unbind from the mousemove event on each of the matched elements. |
---|
Removes a bound mousemove event from each of the matched elements. You must pass the identical function that was used in the original bind method.
<p onmousemove="myFunction">Hello</p>
$("p").unmousemove( myFunction );
<p>Hello</p>
Removes all bound mousemove events from each of the matched elements.
<p onmousemove="alert('Hello');">Hello</p>
$("p").unmousemove();
<p>Hello</p>
fn | Function | A function to bind to the mousedown event on each of the matched elements. |
---|
Bind a function to the mousedown event of each matched element.
<p>Hello</p>
$("p").mousedown( function() { alert("Hello"); } );
<p onmousedown="alert('Hello');">Hello</p>
Trigger the mousedown event of each matched element. This causes all of the functions that have been bound to thet mousedown event to be executed.
<p onmousedown="alert('Hello');">Hello</p>
$("p").mousedown();
alert('Hello');
fn | Function | A function to bind to the mousedown event on each of the matched elements. |
---|
Bind a function to the mousedown event of each matched element, which will only be executed once. Unlike a call to the normal .mousedown() method, calling .onemousedown() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).
<p onmousedown="alert('Hello');">Hello</p>
$("p").onemousedown( function() { alert("Hello"); } );
alert('Hello'); // Only executed for the first mousedown
fn | Function | A function to unbind from the mousedown event on each of the matched elements. |
---|
Removes a bound mousedown event from each of the matched elements. You must pass the identical function that was used in the original bind method.
<p onmousedown="myFunction">Hello</p>
$("p").unmousedown( myFunction );
<p>Hello</p>
Removes all bound mousedown events from each of the matched elements.
<p onmousedown="alert('Hello');">Hello</p>
$("p").unmousedown();
<p>Hello</p>
fn | Function | A function to bind to the mousedown event on each of the matched elements. |
---|
Bind a function to the mouseover event of each matched element.
<p>Hello</p>
$("p").mouseover( function() { alert("Hello"); } );
<p onmouseover="alert('Hello');">Hello</p>
Trigger the mouseover event of each matched element. This causes all of the functions that have been bound to thet mousedown event to be executed.
<p onmouseover="alert('Hello');">Hello</p>
$("p").mouseover();
alert('Hello');
fn | Function | A function to bind to the mouseover event on each of the matched elements. |
---|
Bind a function to the mouseover event of each matched element, which will only be executed once. Unlike a call to the normal .mouseover() method, calling .onemouseover() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).
<p onmouseover="alert('Hello');">Hello</p>
$("p").onemouseover( function() { alert("Hello"); } );
alert('Hello'); // Only executed for the first mouseover
fn | Function | A function to unbind from the mouseover event on each of the matched elements. |
---|
Removes a bound mouseover event from each of the matched elements. You must pass the identical function that was used in the original bind method.
<p onmouseover="myFunction">Hello</p>
$("p").unmouseover( myFunction );
<p>Hello</p>
Removes all bound mouseover events from each of the matched elements.
<p onmouseover="alert('Hello');">Hello</p>
$("p").unmouseover();
<p>Hello</p>