select first drop down to be the same value as the other drop down

Syncphype

New Member
I would like to select all drop down to be the same as the value selected from the primary dropdown. i got it to work if there is one select selected from the primary dropdown, but will not work if there are two selects, i have added some code below for your information.thank you\[code\]<select name="ForceSelection" id="ForceSelection" onChange="javascript:return setDropDown();"><option value="" selected>Select Name</option><option value="http://stackoverflow.com/questions/11844943/Pass">Pass</option><option value="http://stackoverflow.com/questions/11844943/Fail">Fail</option></select><select id="Qualifications" name="Qualifications"> <option value="http://stackoverflow.com/questions/11844943/select">select</option> <option value="http://stackoverflow.com/questions/11844943/Pass">Pass</option> <option value="http://stackoverflow.com/questions/11844943/Fail">Fail</option></select><select id="Qualifications" name="Qualifications"> <option value="http://stackoverflow.com/questions/11844943/select">select</option> <option value="http://stackoverflow.com/questions/11844943/Pass">Pass</option> <option value="http://stackoverflow.com/questions/11844943/Fail">Fail</option></select>function setDropDown() { var index_name=document.QualificationForm.ForceSelection.selectedIndex; document.QualificationForm.Qualifications.selectedIndex=index_name;}\[/code\]
 
Back
Top