Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to insert an unicode in jQuery?

I'm using a font with specified unicode. Instead of displaying the symbol it will only show the numbers or a broken image..

.attr('title', '');

Does anybody knows how to write this correctly? Thank you in advance!

like image 751
Jonathan Avatar asked Dec 20 '22 15:12

Jonathan


1 Answers

You can specify the unicode codepoint directly

.attr('title', '\uE08F')
like image 160
Andbdrew Avatar answered Jan 03 '23 01:01

Andbdrew