.error()
.error( handler )Returns: jQueryversion deprecated: 1.8, removed: 3.0
Description: Bind an event handler to the "error" event, or trigger that event on an element.
-
version added: 1.0.error( handler )
-
handlerA function to execute each time the event is triggered.
-
-
version added: 1.4.3.error( [eventData ], handler )
-
eventDataType: AnythingAn object containing data that will be passed to the event handler.
-
handlerA function to execute each time the event is triggered.
-
-
version added: 1.0.error()
- This signature does not accept any arguments.
This API has been removed in jQuery 3.0.
Instead of .error( handler )
or .error( eventData, handler )
, use .on( "error", handler )
or .on( "error", eventData, handler )
, respectively.
Instead of .error()
, use .trigger( "error" )
.