jQuery.fn.extend( object )Returns: Object
Description: Merge the contents of an object onto the jQuery prototype to provide new jQuery instance methods.
-
version added: 1.0jQuery.fn.extend( object )
-
objectType: ObjectAn object to merge onto the jQuery prototype.
-
The
jQuery.fn.extend()
method extends the jQuery prototype ($.fn
) object to provide new methods that can be chained to the jQuery()
function.
Example:
Add two methods to the jQuery prototype ($.fn
) object and then use one of them.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
|