I just played around in Firebug and noticed that DOM elements have an
"attributes" property (in Firefox, at least), so I tried this, using
the first textarea in my document as an example:
var a = $('textarea')[0].attributes,
attrs = [];
for (i=0; i < a.length; i++) {
attrs.push(a[i].nodeName + ': ' + a[i].nodeValue);
}
attrs.join('\n');
and Firebug displayed all of the attributes, including expandos:
"id: other_qualifications
name: other_qualifications
class: optional
rows: 3
itsalltext_uid: 212w1e1b2r3d231z2g232q302c2x231i1e172v342v3b1p1p"
Not exactly what you wanted, but I still thought it was kind of cool/
worth sharing.
--Karl
____________
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Jan 6, 2009, at 11:06 AM, Ricardo Tomasi wrote:
You can't see all data saved either..
On Jan 6, 12:01 pm, Balazs Endresz <balazs.endr...@gmail.com> wrote:
Why not use $(el).data() for that?
On Jan 6, 12:57 pm, "Alexandre Plennevaux" <aplennev...@gmail.com>
wrote:
I would like to suggest a feature to add to jquery attributes
commands:
I 'm using custom attributes to store UI states. At some point i
would find
it handy to be able to just console.log($(this).attr() ) to see
all the
attributes and their value.
Not a groundbreaking change, but a nice -to-have...
thanks
Alexandre