Create a select option using javascript with the euro symbol in the text

December 5, 2008

This didn’t work:

new Option("€"+value,value);

Neither did this:

new Option("€"+value,value);

But this did:

new Option("\u20AC"+value,value);
Advertisements

3 Responses to “Create a select option using javascript with the euro symbol in the text”

  1. Henrich Says:

    Hello.

    Good tip. Do you know where can i found also the symbols for other currencys in the format as you showed above for the euro?

    Thanks.

  2. senthil Says:

    great tip thanks a lot


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: