.sub()
Categories: Core
.sub( jQuerySubClass )Returns: jQuerySubClass
Description: Change the used class.
-
.sub( jQuerySubClass )
version added: 1.0jQuerySubClass A name of a global jQuery subclass or a jQuery subclass object, which was created with jQuery.subclass().
Chaining is one of the greates features of jQuery. The .sub()
allows to change the used class as chain.
With .sub()
we can switch to a subclass and back to jQuery class or to another subclass.