[Javascript] how can I add the <option selected to this ???
Tom Dell'Aringa
pixelmech at yahoo.com
Mon Jul 8 21:04:53 CDT 2002
I'm a bit unsure of your question - do you want a certain option to
be selected?
--- "Scott.Wiseman" <swiseman at remax-cahi.com> wrote:
> function ActiveList()
> {
>
> if (document.myform.salesagents.length > 0)
> {
> document.myform.salesagents.options = null;
> document.myform.salesagents.options.selectedIndex = 0;
> }
>
> for(var x=1; x< LoadAgents1.length; x++)
> {
>
> if (x=1)
> {
> document.myform.salesagents.options[x] = new
> Option(x);
>
> ********** here
>
> document.myform.salesagents.options[x].value = <option
> selected>Select Agent</option>
>
> document.myform.salesagents.options[x].text =
> LoadAgents1[x];
>
> }
> else
> {
> document.myform.salesagents.options[x] = new
> Option(x);
>
> document.myform.salesagents.options[x].value =
> LoadAgents0[x];
>
> document.myform.salesagents.options[x].text =
> LoadAgents1[x];
>
> }
> }
>
> }
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
=====
var me = tom.pixelmech.webDeveloper();
http://www.pixelmech.com/
__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com
More information about the Javascript
mailing list