mi*****@hotmail.com wrote:
Please quote what you're responding to when replying to a post.
if, i choose none then it says that wrap is undefined.
You can't choose 'None', at least not initially. The change event only
fires when the value changes. As the first option is already
selected[1], no change will occur. You have two options: place a dummy
value in the SELECT element and have it selected by default, or
initialise the wrap variable to zero (0) when you declare it. I'd
probably go for the latter.
Mike
[1] You should always specify an initial option by including the
selected attribute in the opening tag of an OPTION element.
Do not rely the first option being selected by default.
--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.