I am trying to dynamically set the data-icon attribute of an <li> using jquery. the intention is to have the icon display in li:before by setting the content:"" to content:attr(data-icon) . Unfortunately, I cant work out what code to use. Both "" and "U+e024" display as they do here, even when i try using escape characters.
Any idea how to get around this?
Greg