I don't know much of JavaScript, hence this question.
I have an select list with an option entry[html]<option value="This is a value"><This is a value</option>[/html]
When I try to handle the option value, when it is selected, in JavaScript I use command[html]selValue = sel.options[sel.selectedIndex].value;[/html] the variable selValue only contains the string 'This'. It obviously cuts off the value at the point where it encounters a blank character.
I could circumvent this problem by encoding it before storing it in the <option> statement and decoding it after assigning it to selVal.
But is there not another way of capturing the complete value string in JS without this bypass?
Thanks very much for any help or hint you can give me.
Ronald :cool: