Loading a value in a select box!

Results 1 to 2 of 2

Thread: Loading a value in a select box!

  1. #1
    Join Date
    Dec 1969

    Default Loading a value in a select box!

    I want to click on a link and then have that value of the link to be select in a drop down box. I can get it to work in IE, but not in Netscape.

  2. #2
    Join Date
    Dec 1969

    Default RE: Loading a value in a select box!

    Since you have a script that&#039s already working in IE you would&#039ve posted that script,so that it would&#039ve been easier to figure out what&#039s wrong for NN<BR>But anyway I think this is oneway to do it<BR>if u have that value already in the Select list then u can just set the selectedindex to have it selected<BR> document.formname.selectlistname.selectdIndex = value<BR>if u don&#039t have that value in the listbox and u want to create a new one<BR> document.formname.selectlistname.options[newindex] = new Option("Choice","Value");<BR> document.formname.selectlistname.selectdIndex = newindex;<BR>to find out the value for newindex<BR> newindex = document.formname.selectlistname.options.length +1;<BR>Hope this helps.<BR> <BR><BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts