- JQuery Set Content
- JQuery Get Content
- JQuery Add Elements
- JQuery Remove
- JQuery Css Classes
- JQuery Css Method
- JQuery Dimensions
- JQuery noConflict
- JQuery each method
- JQuery Parammethod
- JQuery Data Method
- JQuery Index Method
- JQuery Get Method
chaining allows us to execute multiple jquery methods(on the same element) within a single statement.
jquery method chaining
jquery heavily relies on chaining.this makes it easy to call several methods on the same selection.
a method chain is also known as a train wreck due to an increasing amount of methods stacked one after another in one line.
it also makes code more clear and prevents executing the same selection several times (hence improving performance).
it improves readability and reduces the amount of source code.
example :following example chains together the slidedown(), addclass() and css() methods in one line.
you can formats your above chaining example codes.