Tuesday, May 21, 2024
 Popular · Latest · Hot · Upcoming
75
rated 0 times [  79] [ 4]  / answers: 1 / hits: 15489  / 12 Years ago, thu, january 31, 2013, 12:00:00

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.


More From » jquery

 Answers
28

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/


[#80501] Wednesday, January 30, 2013, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
blaynetheoi

Total Points: 146
Total Questions: 116
Total Answers: 103

Location: India
Member since Thu, Apr 8, 2021
3 Years ago
;