[thelist] Option Value change
7 sinz
btcode at hotmail.com
Fri Jun 4 16:25:13 CDT 2004
Thanks for the response Clayton,
Im trying to change the option values when ever i update the outputted
values.
For example i have every country in the world hat has a value, outpuuted by
JS.
Each country will have nearly tow or three values.
Im trying to create a template that will change hundreds of values ( for
updating which will occur regularly ) without going into the HTML file.
If that's a bit clearer could please send you're possiable solution.
>From: Clayton Smith <clayton at geni-us.com>
>Reply-To: "thelist at lists.evolt.org" <thelist at lists.evolt.org>
>To: "thelist at lists.evolt.org" <thelist at lists.evolt.org>
>Subject: Re: [thelist] Option Value change
>Date: Fri, 04 Jun 2004 08:44:30 -0500
>
>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
>
>--
>* * Please support the community that supports you. * *
>http://evolt.org/help_support_evolt/
>
>For unsubscribe and other options, including the Tip Harvester and archives
>of thelist go to: http://lists.evolt.org Workers of the Web, evolt !
_________________________________________________________________
FOXTEL Digital - Your ticket to cinema at home:
http://ad.au.doubleclick.net/clk;7718915;9123289;x?http://www.foxtel.com.au/Campaign/channelchoice.html
More information about the thelist
mailing list