Firefox option indentation

N

nick

Hi

Can anybody tell me why this doesn't work in Firefox?

sel.options[sel.options.length] = new Option("\u0020\u0020-
\u0020\u0020Option 1", 1);

Basically I'm trying to indent some options but Firefox refuses to
show those spaces!

Thanks for any help.
 
N

Nik Coughlin

nick said:
Hi

Can anybody tell me why this doesn't work in Firefox?

sel.options[sel.options.length] = new Option("\u0020\u0020-
\u0020\u0020Option 1", 1);

Basically I'm trying to indent some options but Firefox refuses to
show those spaces!

Thanks for any help.

Sounds like Firefox is calling some sort of trim method on the string
internally, but that's just a guess
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top