12.8. Chaining Events

The real power of jQuery comes from its capability to chain functions together. Imagine that you want to fade your <div> in and out a number of times. You can easily accomplish this procedure with the following code:

$("#div1").fadeOut().fadeIn().fadeOut().fadeIn().fadeOut();

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.135.192.141