In chrome, this line of code returns something useful.
$('[data-buyername]').data()
obviously, it will return the value of the tag data-buyername='somethingArbitrary'
In IE8 though, .data()
doesn't return anything.
Does anyone know how to get the data (both key and value) from a tag like this?
...
In chrome, .data() returns a dictionary {'buyername':'somethingArbitrary'}, but IE8 returns an empty dictionary {}