.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.

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" ).