Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Selecting options in Selectbox dynamically in NS4

Status
Not open for further replies.

ketankshah

IS-IT--Management
Jan 11, 2001
121
0
0
IN
I have a form which shows few rows from a table. some fo the columns are in Selectboxes. I have a javascript function which copies the data from the first row on clicking a checkbox provided for copying, and populate rest of the rows to help the user of repeatative entries. The code is working find in IE but in NS4 it is now working.

The code is in a for loop and shipby a variable the value of which I set from my first row.

eval("document.frm.shipby"+i+".value = shipby")

I can not use the following because there is no selectedIndex in this case as I am assigning the value.

eval("document.frm.shipby"+i+".options[document.frm.shipby"+i+".selectedIndex].value = shipby")

Any help will be useful to me.

Ketan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top