[jQuery] Storing extra information about objects
Hi All,
I'm looking for a way to store information about a class, like the
current "page" it's on (for ajax paging) and such. Essentially I
would like to do the following:
$("#object").page = 2;
$("#object").page; //returns 2
However, this doesn't quite seem to work. I considered using attr(),
but that didn't seem like the best way to do it, as it edits the
HTML. I looked at the metadata plugin, but after a cursory glance it
seemed like overkill.
Any suggestions?
Thanks,
Kyle