[thelist] Option Value change
Clayton Smith
clayton at geni-us.com
Fri Jun 4 08:44:30 CDT 2004
you change the values easily.
but I don't fully understand what you mean by "is there a way to change
the value="foo" in a seperate file. And if so, can i do it for different
options? "
why would you change it in a seperate file? you can change the value
with javascript in the current file.
I was about to write a possible solution but when do you want the option
to have its value changed?
-c
7 sinz wrote:
> Hi, im just wondering if theres a DOM/javascript way of changin'
> option value="" via a linked file.
>
>
> Basically what im asking is something like the following.
>
>
> <form >
> <select>
>
> <option value="foo">Foo is here</option>
>
> </select>
> </form>
>
> I already have JS outputting the value, but for ease of udating, is
> there a way to change the value="foo" in a seperate file. And if so,
> can i do it for different options?
>
> --------------------------
> Like the following.
> --------------------------
>
> < option value="foo" id="1">the first one</option>
>
> output= foo
>
> < option value="foo2" id="2">the second one</option>
>
> output= foo2
> ect....
>
>
> Is the above possiasble, and if so, how would you go about
> researching/ developing it?
>
>
> Any thoughts/comments on this would be great.
>
> Kind regards
>
> Steven
More information about the thelist
mailing list