jQuery has the very cool feature/method “.data”, I wonder if there is a way to have the data in the code so that jQuery can use it when the rendering of html is done. Suppose i have a repeater and looping out children, and I want to add some data to those children without using classes etc. Will I have to add javascript to that repeater just to add stuff to the “data of jquery” or is there some better way?
Share
There is the metadata plugin which might do what you are talking about
For example, you can do: (You can pick from different format by setting an option)
After that you can simply do: