JQuery ajaxError Event Example

jquery

This tutorial explains the usage of ajaxError() method in jQuery. The ajaxError() is the jQuery Ajax event which specifies the function to be executed when Ajax requests fails to complete or completes with an error. This event is only called if an error occurred with the Ajax requests. We can never have both success and […]

JQuery Keydown, Keypress, and Keyup Example

jquery

JQuery keydown() Event The keydown event occurs when user presses a key on the keyboard. Whenever a key is pressed down, the keydown() method attaches event handler to the keydown JavaScript event or triggers that event on an element. The keydown event is sent to an element when user presses a key on the keyboard. […]

JQuery Select Event Example

jquery

The select event occurs when some text has been selected in an element. For instance, when text is selected in the text field, the select event triggers. The select event is sent to an element when the user makes selection inside the text field. It binds event handler to select event or define a function […]

JQuery Resize Event Example

jquery

Generally resize means to make something different size. In graphical user interfaces, we can size windows to make them larger or smaller. According to JQuery langauge, the resize event occurs when the size of the browser window changes. It binds event handler to resize event or binds a function which is to be executed when […]

JQuery Scroll Event Example

jquery

The scroll event occurs when the user scrolls an element by using arrow keys, scroll bar or mouse wheel. We cannot prevent scrolling. When user scrolls to different place in the element, the scroll event is sent to an element. It is sent whenever the element’s scroll position changes. The scroll() event also occurs when […]

JQuery Error Event Example

jquery

The error event represents information about event which are related to errors in scripts or in files. The error event occurs when there is an error in loading or unloading elements. It binds an event handler to “error” event. For example, when you are loading an image, if you missed writing the correct name of […]

JQuery Ready Event Example

jquery

The ready() event fires up a function to execute when document is ready. It will run once the page document object model is ready for JavaScript code to execute. When document object model(DOM) is loaded, the event handler is passed to ready() function which is to be executed after DOM is ready. DOM means all […]

JQuery Live Event Handler Example

jquery

It attaches event handlers to the specified elements and specifies the function to run when the event occurs. This method attaches delegated event handlers to the document of a page. When you use live() event, it will bind all current and future elements on the page. The live() method do not set anything on the […]

JQuery Change Event Example

jquery

The change event occurs when the value of the component changed by the user or application. This event is associated witho <input> elements, <textarea>boxes and <select> elements. For select boxes, checkboxes, and radio buttons, the event is fired immediately when the user makes a selection with the mouse, but for the other element types the event is deferred until the element […]

JQuery Delegate Event Example

jquery

The delegate() method attaches one or more event handlers to child elements of specified selector. When selector is provided, the event handler is referred to as delegated. The selector can be button selector which selects elements of type button, checkbox selector which selects elements of type checkbox, child selector which selects child elements specified by […]