Couldn't seem to find any info about this googling. Hope that doesn't mean because you can't do it.
I'm trying to check if metadata exists on an element. So if I have an element like <a href="#" class="myclass {myid:2,text:bla}">
, with my click function I would use $(this).hasClass('myid')
or $(this).hasClass({'myid'})
. Is it possible to do this?
Also can you add metadata dynamically? If I try $(this).addClass({some:data}), it adds it onto the class, but I can't read it with metadata().