ketankshah
IS-IT--Management
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
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