2

Is there a way to set the text of an element to something like ✘ (✘) using JQuery?

ie:

$('#something').text('`✔`'); //only ends in tears.
PSL
  • 123,204
  • 21
  • 253
  • 243
hazyred
  • 3,618
  • 3
  • 12
  • 14

1 Answers1

3

String.fromCharCode is the tool you need.

$('#something').text(String.fromCharCode(10004)); //Checkmark
Jeremy J Starcher
  • 23,369
  • 6
  • 54
  • 74