Create a new copy of 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
object, without modifying the original
jQuery object, this method was moved to a plugin in jQuery 1.8 for this purpose.
|jQuery.sub()||Create a new copy of the |
jQuery object either containing the elements matched or empty.