forcing selected index value for multiple selects

admin

Administrator
Staff member
Hello,
I have an active server page which writes out sales leads dynamically from a database, max 10 per page. each row of leads has a select list which displays the call centre reps names, and each select list has the same name, which is "assign" - basically the user will go through the lists of leads and select a name from the dropdown lists to assign the leads to the person selected. I would like to be able to have all the dropdown lists automatically reflect the name chosen on the first one, so that he doesn't have to click on all 10 on each page, which of course is very time consuming. Is there a way to code a function which is triggered by an onChange event which will force a new selectedIndex value for all the select fields on that page, based on the one manually selected by the user?
Please note there may not be 10 leads (and hence 10 select lists) on all the pages; the last page may have less than 10, depending on how many rows are returned from the database.
I am fine with the backend code, it is the client-side Javascript I am having trouble with!

Thanks very much,

Paul
 
Back
Top