How do i display a string with Special Characters like € in a Javascript/jQuery alert?
eg: I want to display a message box with "The Price is €10"
But when i use the below code:
alert("The Price is €10");
The Output shown in the message box is "The Price is €10"
, I want my output to be "The Price is €10"
.
Can some help me with this please? Thanks in advance.
Use this as the alert. Works fine for me.
alert(' The Price is \u20AC 10');
The description is here : http://leftlogic.com/projects/entity-lookup/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With