Author: admin

  • jQuery focus

    The jQuery focus event occurs when an element gains focus. It is generated by a mouse click or by navigating to it. This event is implicitly used to limited sets of elements such as form elements like <input>, <select> etc. and links <a href>. The focused elements are usually highlighted in some way by the…

  • jQuery blur()

    The jQuery blur event occurs when element loses focus. It can be generated by via keyboard commands like tab key or mouse click anywhere on the page. It makes you enable to attach a function to the event that will be executed when the element loses focus. Originally, this event was used only with form…

  • jQuery unbind method

    The unbind() method in jQuery is used to remove the event handlers from the selected elements. We can also use this method to remove all or specific event handlers. It can also be used to stop specified functions. Syntax Parameter values This method accepts three optional parameter values that are defined as follows. event: It is an optional parameter. It…

  • jQuery bind

    The jQuery bind() event is used to attach one or more event handlers for selected elements from a set of elements. It specifies a function to run when the event occurs. It is generally used together with other events of jQuery. Syntax: Parameters of jQuery bind() event Parameter Description Event It is a mandatory parameter.…

  • jQuery click

    When you click on an element, the click event occurs and once the click event occurs it execute the click () method or attaches a function to run. It is generally used together with other events of jQuery. Syntax: It is used to trigger the click event for the selected elements. It is used to…

  • jQuery Events

    jQuery events are the actions that can be detected by your web application. They are used to create dynamic web pages. An event shows the exact moment when something happens. These are some examples of events. These events can be categorized on the basis their types: Mouse Events Keyboard Events Form Events Document/Window Events Note:…

  • Chaining

    With jQuery, you can chain together actions/methods. Chaining allows us to run multiple jQuery methods (on the same element) within a single statement. jQuery Method Chaining Until now we have been writing jQuery statements one at a time (one after the other). However, there is a technique called chaining, that allows us to run multiple…

  • jQuery Callback Functions

    jQuery Callback Functions JavaScript statements are executed line by line. However, with effects, the next line of code can be run even though the effect is not finished. This can create errors. To prevent this, you can create a callback function. A callback function is executed after the current effect is finished. Typical syntax: $(selector).hide(speed,callback); Examples…

  • jQuery Stop Animations

    The jQuery stop() method is used to stop animations or effects before it is finished.Start sliding Stop sliding Click to slide down/up the panel Examples jQuery stop() slidingDemonstrates the jQuery stop() method. jQuery stop() animation (with parameters)Demonstrates the jQuery stop() method. jQuery stop() Method The jQuery stop() method is used to stop an animation or effect before it…

  • Animation

    With jQuery, you can create custom animations.Start Animation jQuery jQuery Animations – The animate() Method The jQuery animate() method is used to create custom animations. Syntax: $(selector).animate({params},speed,callback); The required params parameter defines the CSS properties to be animated. The optional speed parameter specifies the duration of the effect. It can take the following values: “slow”, “fast”, or…