I tried this example, but there is still a problem - I could not get 'metadata' value. Could somebody show one more example?
Asked
Active
Viewed 951 times
1 Answers
0
That example is working fine for me with version 1.0-rc3
Here's another:
{
'attr': {'id': 'example1'},
'data': {
'attr': {
'href': '#'
},
'title': 'Example'
},
'metadata': {
'hello': 'world'
}
}
And to retrieve the metadata:
$(node).data('hello'); // world

Steve H
- 946
- 9
- 22