>< script language="Javascript" > >for (var iloop = 1; iloop < 6; iloop++){ > document.write([ form elements, iloop value can be used to create dx variables ]); > ... >} >< /script > >I couldn't get the code to render the value of the variable. Document.write() would only write the var, not evaluate it. If a user selects Memphis Police Department in the dropdown, I want the MPD's address to populate the street number, street name and city fields for the associated row. I have each row's field names built dynamically. I guess I could prebuild the form with an array and handle it that way, but I was hoping there was some way to make the code a little tighter.