[jQuery] creating metadata on the fly using .metadata() or .data()
What are the main differences between the metadata plugin and jQuery's
built in .data() method? Has the metadata plugin been incorporated
into jQuery core?
I'm currently using the metadata plugin and its working great for the
data that the server adds to the elements upon page creation. I need
to be able to dynamically add metadata to certain elements on the
fly.
The metadata I'm using is stored as an attribute like so: <tr
data="{some: 'data'}">. I'm not seeing a way to add to the existing
metadata using the metadata() plugin. jQuery core has this method to
create data: jQuery.data( elem, name, value ). Will this add to my
data="" atribute?
What is the best way to create metadata on the fly?
Thanks
Brian