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