fn | Function | A function to bind to the scroll event on each of the matched elements. |
---|
Bind a function to the scroll event of each matched element.
<p>Hello</p>
$("p").scroll( function() { alert("Hello"); } );
<p onscroll="alert('Hello');">Hello</p>
Trigger the scroll event of each matched element. This causes all of the functions that have been bound to thet scroll event to be executed.
<p onscroll="alert('Hello');">Hello</p>
$("p").scroll();
alert('Hello');
fn | Function | A function to bind to the scroll event on each of the matched elements. |
---|
Bind a function to the scroll event of each matched element, which will only be executed once. Unlike a call to the normal .scroll() method, calling .onescroll() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).
<p onscroll="alert('Hello');">Hello</p>
$("p").onescroll( function() { alert("Hello"); } );
alert('Hello'); // Only executed for the first scroll
fn | Function | A function to unbind from the scroll event on each of the matched elements. |
---|
Removes a bound scroll event from each of the matched elements. You must pass the identical function that was used in the original bind method.
<p onscroll="myFunction">Hello</p>
$("p").unscroll( myFunction );
<p>Hello</p>
Removes all bound scroll events from each of the matched elements.
<p onscroll="alert('Hello');">Hello</p>
$("p").unscroll();
<p>Hello</p>
fn | Function | A function to bind to the error event on each of the matched elements. |
---|
Bind a function to the error event of each matched element.
<p>Hello</p>
$("p").error( function() { alert("Hello"); } );
<p onerror="alert('Hello');">Hello</p>
Trigger the error event of each matched element. This causes all of the functions that have been bound to thet error event to be executed.
<p onerror="alert('Hello');">Hello</p>
$("p").error();
alert('Hello');
fn | Function | A function to bind to the error event on each of the matched elements. |
---|
Bind a function to the error event of each matched element, which will only be executed once. Unlike a call to the normal .error() method, calling .oneerror() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).
<p onerror="alert('Hello');">Hello</p>
$("p").oneerror( function() { alert("Hello"); } );
alert('Hello'); // Only executed for the first error
fn | Function | A function to unbind from the error event on each of the matched elements. |
---|
Removes a bound error event from each of the matched elements. You must pass the identical function that was used in the original bind method.
<p onerror="myFunction">Hello</p>
$("p").unerror( myFunction );
<p>Hello</p>
Removes all bound error events from each of the matched elements.
<p onerror="alert('Hello');">Hello</p>
$("p").unerror();
<p>Hello</p>
fn | Function | A function to bind to the load event on each of the matched elements. |
---|
Bind a function to the load event of each matched element.
<p>Hello</p>
$("p").load( function() { alert("Hello"); } );
<p onload="alert('Hello');">Hello</p>
Trigger the load event of each matched element. This causes all of the functions that have been bound to thet load event to be executed.
Marked as private: Calling load() without arguments throws exception because the ajax load does not handle it.
<p onload="alert('Hello');">Hello</p>
$("p").load();
alert('Hello');
fn | Function | A function to bind to the load event on each of the matched elements. |
---|
Bind a function to the load event of each matched element, which will only be executed once. Unlike a call to the normal .load() method, calling .oneload() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).
<p onload="alert('Hello');">Hello</p>
$("p").oneload( function() { alert("Hello"); } );
alert('Hello'); // Only executed for the first load
fn | Function | A function to unbind from the load event on each of the matched elements. |
---|
Removes a bound load event from each of the matched elements. You must pass the identical function that was used in the original bind method.
<p onload="myFunction">Hello</p>
$("p").unload( myFunction );
<p>Hello</p>
Removes all bound load events from each of the matched elements.
<p onload="alert('Hello');">Hello</p>
$("p").unload();
<p>Hello</p>
fn | Function | A function to bind to the unload event on each of the matched elements. |
---|
Bind a function to the unload event of each matched element.
<p>Hello</p>
$("p").unload( function() { alert("Hello"); } );
<p onunload="alert('Hello');">Hello</p>
Trigger the unload event of each matched element. This causes all of the functions that have been bound to thet unload event to be executed.
<p onunload="alert('Hello');">Hello</p>
$("p").unload();
alert('Hello');
fn | Function | A function to bind to the unload event on each of the matched elements. |
---|
Bind a function to the unload event of each matched element, which will only be executed once. Unlike a call to the normal .unload() method, calling .oneunload() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).
<p onunload="alert('Hello');">Hello</p>
$("p").oneunload( function() { alert("Hello"); } );
alert('Hello'); // Only executed for the first unload
fn | Function | A function to unbind from the unload event on each of the matched elements. |
---|
Removes a bound unload event from each of the matched elements. You must pass the identical function that was used in the original bind method.
<p onunload="myFunction">Hello</p>
$("p").ununload( myFunction );
<p>Hello</p>
Removes all bound unload events from each of the matched elements.
<p onunload="alert('Hello');">Hello</p>
$("p").ununload();
<p>Hello</p>
fn | Function | A function to bind to the resize event on each of the matched elements. |
---|
Bind a function to the resize event of each matched element.
<p>Hello</p>
$("p").resize( function() { alert("Hello"); } );
<p onresize="alert('Hello');">Hello</p>
Trigger the resize event of each matched element. This causes all of the functions that have been bound to thet resize event to be executed.
<p onresize="alert('Hello');">Hello</p>
$("p").resize();
alert('Hello');
fn | Function | A function to bind to the resize event on each of the matched elements. |
---|
Bind a function to the resize event of each matched element, which will only be executed once. Unlike a call to the normal .resize() method, calling .oneresize() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).
<p onresize="alert('Hello');">Hello</p>
$("p").oneresize( function() { alert("Hello"); } );
alert('Hello'); // Only executed for the first resize
fn | Function | A function to unbind from the resize event on each of the matched elements. |
---|
Removes a bound resize event from each of the matched elements. You must pass the identical function that was used in the original bind method.
<p onresize="myFunction">Hello</p>
$("p").unresize( myFunction );
<p>Hello</p>
Removes all bound resize events from each of the matched elements.
<p onresize="alert('Hello');">Hello</p>
$("p").unresize();
<p>Hello</p>