PDA

View Full Version : Space character in Select Option Value


peterinwa
03-28-2003, 05:59 AM
P.S.

Got the answer... just put the Value string in quote marks.

Would delete this post if I could.

Thanks,

Peter

It appears that I can put any alphanumeric character or punctuation symbol in a text string that is the value of a Select Option, e.g.:

<option value=45,0,0,10,0,1 oz/28 g>Barbeque Sauce

except the space character. When I read the above value, I get only:

45,0,0,10,0,1

It stops with the last character before the first space.

I can get around this by replacing each space with & nbsp; (without the space after the &; I did that so it would show here) but this is not very practical as it takes a lot of bytes and is hard to edit.

Is there a way around this? Obviously it's not what Value was designed to do!

Thanks, Peter