A little javascript help needed here (easy).
Posted
by Camran
on Stack Overflow
See other posts from Stack Overflow
or by Camran
Published on 2010-05-17T18:17:22Z
Indexed on
2010/05/17
18:20 UTC
Read the original article
Hit count: 157
JavaScript
|html
function addOption(selectbox, val, txt){
......
}
addOption(list, "Cars", "Cars");
I need to add this in front of the text of the function:
So that there is space coming in before the option text...Never mind what it is for, it is just confusing... I just don't know how to insert it into the js code.
If I do it like this:
addOption(list, "Cars", " Cars");
Then the
comes into the text, so it gets displayed for the users.
However I need it to be interpreted as "space"...
If you don't understand let me know...
How can I do this? Quotes, double quotes etc?
Thanks
© Stack Overflow or respective owner