jQuery.sub()
** REMOVED **S2C Home « Core & Internals « jQuery.sub()
Create a new copy of the jQuery
object.
Shorthand version $.sub()
Description
The jQuery.sub()
method allows us to create a new copy of jQuery whose values can be altered without affecting the original jQuery object..
There is only one signature for this method and there are no parameters.
This method was deprecated in jQuery 1.7 and removed in jQuery 1.9 so we are just showing it for completeness. As the major use for this method is for plugins to work on a copy of the jQuery
object, without modifying the original jQuery
object, this method was moved to a plugin in jQuery 1.8 for this purpose.
Syntax
Signature | Description |
---|---|
jQuery.sub() | Create a new copy of the jQuery object, whose values can be altered without affecting the original jQuery object. |
Parameters
None.
Return
A jQuery
object either containing the elements matched or empty.