How can you set the selected value for a drop down list that is dynamically generated. Here are the details... I have a table with a row for each office
1 Los Angeles
2 New York
3 Boston
etc.... etc...
I have another table of employees, and each employee has an office id (that correspondes to the office table) indicating where they work.
I have a page to edit the employees name, address which are all text fields, and one dropdown list that indicates their office. When the page first loads, I'd like for their office "selected" in the office dropdown list to match their employee record, but also list all the other offices. How do I default the selected value for the office dropdown based on the officeID for that employee?
...
Go to the complete details ...