jQuery.removeData( element [, name ] )Returns: undefined
Description: Remove a previously-stored piece of data.
-
version added: 1.2.3jQuery.removeData( element [, name ] )
Note: This is a low-level method, you should probably use .removeData()
instead.
The jQuery.removeData()
method allows us to remove values that were previously set using jQuery.data()
. When called with the name of a key, jQuery.removeData()
deletes that particular value; when called with no arguments, all values are removed.
Example:
Set a data store for 2 names then remove 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
|
|